aboutsummaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/timefmt.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace bcopy with memcpy or memmove as appropriate.Justus Winter2017-08-051-1/+1
| | | | | | | | | | | * boot/boot.c: Replace bcopy with memcpy or memmove as appropriate. * exec/hashexec.c: Likewise. * libps/proclist.c: Likewise, but also fix the amount of data copied. * libps/procstat.c: Likewise. * libps/spec.c: Likewise. * libshouldbeinlibc/cacheq.c: Likewise. * libshouldbeinlibc/idvec.c: Likewise. * libshouldbeinlibc/timefmt.c: Likewise.
* libshouldbeinlibc: fix dead initialization in fmt_named_intervalJustus Winter2014-06-181-1/+1
| | | | | | | Found using the Clang Static Analyzer. * libshouldbeinlibc/timefmt.c (fmt_named_interval): Fix dead initialization.
* libshouldbeinlibc: fix dead assignmentJustus Winter2013-11-151-2/+2
| | | | | | | Found using the Clang Static Analyzer. * libshouldbeinlibc/timefmt.c (fmt_past_time): Fix dead assignment, normalize adjacent white space.
* Address gcc warningsBob Ham2012-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | * 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-20 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-02-201-0/+1
| | | | | * timefmt.c: Include <time.h>. Reported by Arkadi E. Shishlov <arkadi@it.lv>.
* (fmt_past_time): Always use WIDTH+1 as strftime's limit.Miles Bader1996-07-271-1/+1
|
* (fmt_past_time): Terminate SEPS.Miles Bader1996-07-261-2/+2
|
* (fmt_past_time): Try several separators when concatenating dates & times.Miles Bader1996-07-231-6/+9
|
* (fmt_past_time): Get rid of extraneous `f' in fmt string.Miles Bader1996-07-051-1/+1
|
* (fmt_seconds): Don't print two decimal points.Miles Bader1996-05-281-1/+0
|
* (add_field): Correctly decrement *SECS by amount printed.Miles Bader1996-05-151-1/+1
|
* (fmt_named_interval):Miles Bader1996-05-151-21/+55
| | | | | | | 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.
* (fmt_past_time): And do it correctly, too.Michael I. Bushnell1996-05-091-1/+1
|
* (fmt_past_time): Cast arg to localtime appropriately.Michael I. Bushnell1996-05-091-1/+1
|
* (fmt_past_time): Suppress leading noise in some formats.Miles Bader1996-05-081-1/+1
|
* (fmt_past_time): New function.Miles Bader1996-05-011-110/+170
| | | | | | (fmt_minutes, fmt_seconds): New args, rewrite. (add_field): New function. (fmt_frac_value, append_fraction): Functions removed.
* Initial revisionMiles Bader1996-04-271-0/+262