diff options
author | Gary Mills <gary_mills@fastmail.fm> | 2014-01-03 12:54:12 -0600 |
---|---|---|
committer | Dan McDonald <danmcd@omniti.com> | 2014-01-08 14:53:56 +0000 |
commit | ee169c7e77bc5d28a401dde8533cbd38afd24ae1 (patch) | |
tree | fc299688835244cb4016798b5de904449a039bce /usr/src/cmd/cron/cron.c | |
parent | 2063d9c01c4a721994a3cb528444d7f328135869 (diff) | |
download | illumos-gate-ee169c7e77bc5d28a401dde8533cbd38afd24ae1.tar.gz |
4378 Clean up %C in *time() functions
438 need documentation for strftime %s flag
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/cmd/cron/cron.c')
-rw-r--r-- | usr/src/cmd/cron/cron.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/src/cmd/cron/cron.c b/usr/src/cmd/cron/cron.c index 54d3c9d971..ab36d09037 100644 --- a/usr/src/cmd/cron/cron.c +++ b/usr/src/cmd/cron/cron.c @@ -23,6 +23,8 @@ * Use is subject to license terms. * * Copyright 2013 Joshua M. Clulow <josh@sysmgr.org> + * + * Copyright (c) 2014 Gary Mills */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ @@ -549,7 +551,7 @@ begin: } else { ne_time = next_event->time - t; #ifdef DEBUG - cftime(timebuf, "%C", &next_event->time); + cftime(timebuf, "%+", &next_event->time); (void) fprintf(stderr, "next_time=%ld %s\n", next_event->time, timebuf); #endif @@ -623,7 +625,7 @@ begin: next_time(next_event, (time_t)0); } #ifdef DEBUG - cftime(timebuf, "%C", &next_event->time); + cftime(timebuf, "%+", &next_event->time); (void) fprintf(stderr, "pushing back cron event %s at %ld (%s)\n", next_event->cmd, next_event->time, timebuf); @@ -1271,7 +1273,7 @@ again: } cte_valid(); #ifdef DEBUG - cftime(timebuf, "%C", &e->time); + cftime(timebuf, "%+", &e->time); (void) fprintf(stderr, "inserting cron event %s at %ld (%s)\n", e->cmd, e->time, timebuf); #endif |