summaryrefslogtreecommitdiff
path: root/src/uptime.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-02-05 09:50:18 +0000
committerJim Meyering <jim@meyering.net>2004-02-05 09:50:18 +0000
commitc904b0cae656e1850ce5ce33e92e82ff76211df4 (patch)
tree2263cbe2b52688f0c188302f352f735d6402f7e1 /src/uptime.c
parentadc816c05ac409c4a0e9cff03114cb7af2c5516d (diff)
downloadcoreutils-c904b0cae656e1850ce5ce33e92e82ff76211df4.tar.xz
Don't dump core if localtime returns NULL (possible on
hosts with 64-bit time_t and 32-bit int). Include "inttostr.h". (batch_convert, main): If time conversion fails, exit with nonzero status. (show_date): Return int to report conversion failure. Print the time as an int if localtime fails.
Diffstat (limited to 'src/uptime.c')
0 files changed, 0 insertions, 0 deletions