summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/timefmt.c
AgeCommit message (Collapse)Author
2014-06-18libshouldbeinlibc: fix dead initialization in fmt_named_intervalJustus Winter
Found using the Clang Static Analyzer. * libshouldbeinlibc/timefmt.c (fmt_named_interval): Fix dead initialization.
2013-11-15libshouldbeinlibc: fix dead assignmentJustus Winter
Found using the Clang Static Analyzer. * libshouldbeinlibc/timefmt.c (fmt_past_time): Fix dead assignment, normalize adjacent white space.
2012-06-30Address gcc warningsBob Ham
* exec-reauth.c (exec_reauth): Change type of temp var i to unsigned int to address gcc warning. * idvec-impgids.c (idvec_merge_implied_gids) Change type of temp var i to unsigned int to address gcc warning. * idvec-impgids.c (idvec_merge_implied_gids): Change type of temp var i to unsigned int to address gcc warning. * idvec-rep.c (idvec_rep): Change type of temp var i to unsigned int to address gcc warning. * idvec-verify (idvec_verify): Change type of temp var i to unsigned int to address gcc warning. * idvec.c (idvec_merge_ids, idvec_remove): Change type of temp var i to unsigned int to address gcc warning. * portxlate.c (port_name_xlator_create, port_name_xlator_free): Change type of temp var i to unsigned int to address gcc warning. * timefmt.c (fmt_seconds): Cast width to int in test to modify frac_places to address gcc warning. * (ugids_verify_make_auth): Change type of temp var i to unsigned int to address gcc warning.
2001-02-202001-02-20 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* timefmt.c: Include <time.h>. Reported by Arkadi E. Shishlov <arkadi@it.lv>.
1996-07-27(fmt_past_time): Always use WIDTH+1 as strftime's limit.Miles Bader
1996-07-26(fmt_past_time): Terminate SEPS.Miles Bader
1996-07-23(fmt_past_time): Try several separators when concatenating dates & times.Miles Bader
1996-07-05(fmt_past_time): Get rid of extraneous `f' in fmt string.Miles Bader
1996-05-28(fmt_seconds): Don't print two decimal points.Miles Bader
1996-05-15(add_field): Correctly decrement *SECS by amount printed.Miles Bader
1996-05-15(fmt_named_interval):Miles Bader
Use fraction digit in more cases. Always pick the last suffix if we can't find any that fits. Use new tv_ functions. (tv_is_zero, tv_is_ge): New functions.
1996-05-09(fmt_past_time): And do it correctly, too.Michael I. Bushnell
1996-05-09(fmt_past_time): Cast arg to localtime appropriately.Michael I. Bushnell
1996-05-08(fmt_past_time): Suppress leading noise in some formats.Miles Bader
1996-05-01(fmt_past_time): New function.Miles Bader
(fmt_minutes, fmt_seconds): New args, rewrite. (add_field): New function. (fmt_frac_value, append_fraction): Functions removed.
1996-04-27Initial revisionMiles Bader