factor out time_t-to-string conversion idiom
authorJim Meyering <meyering@redhat.com>
Fri, 27 Jun 2008 08:54:23 +0000 (10:54 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 27 Jun 2008 08:54:23 +0000 (10:54 +0200)
commita67685628504d92b80eabe7cdc02c500f12b4873
tree55f09b93cd3d7454edf9b235815f0922c10a4d59
parente2dbcee444e90e4289bd4bdc36783a5ef00af396
factor out time_t-to-string conversion idiom

* src/system.h: Include "inttostr.h".
(timetostr): New function, factored out of...
* src/date.c (show_date): Use timetostr.
* src/du.c (show_date): Likewise.
* src/ls.c (print_long_format): Likewise.
* src/pinky.c (time_string): Likewise.
* src/stat.c (human_time): Likewise.
* src/*.c: Don't include inttostr.h, since system.h does.
* src/c99-to-c89.diff: Adjust offsets.
21 files changed:
src/c99-to-c89.diff
src/chown-core.c
src/cksum.c
src/csplit.c
src/date.c
src/df.c
src/du.c
src/expr.c
src/factor.c
src/head.c
src/ls.c
src/pinky.c
src/shred.c
src/sort.c
src/split.c
src/stat.c
src/system.h
src/tail.c
src/test.c
src/wc.c
src/who.c