about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2014-07-30 14:20:07 +0100
committerPeter Stephenson <pws@zsh.org>2014-07-30 14:20:07 +0100
commit51c0ccd303d48673472c9f12524185e04a8a732b (patch)
tree062859c152d4773ac106e43b35ba034f1a7807af
parent15db636380a6010c8486b3a7dc27188c96beff9c (diff)
downloadzsh-51c0ccd303d48673472c9f12524185e04a8a732b.tar.gz
zsh-51c0ccd303d48673472c9f12524185e04a8a732b.tar.xz
zsh-51c0ccd303d48673472c9f12524185e04a8a732b.zip
missed updates to calls to ztrftime()
-rw-r--r--ChangeLog3
-rw-r--r--Src/Builtins/sched.c2
-rw-r--r--Src/Modules/datetime.c2
-rw-r--r--Src/Modules/stat.c2
4 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f415e4803..e861e0d90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2014-07-30  Peter Stephenson  <p.stephenson@samsung.com>
 
+	* unposted: Src/Builtins/sched.c, Src/Modules/datetime.c,
+	Src/Modules/stat.c: missed updates to ztrftime().
+
 	* 32919: Doc/Zsh/tcpsys.yo Functions/TCP/tcp_output: %P
 	at start of prompt in TCP function system causes standard
 	%-style substitution.
diff --git a/Src/Builtins/sched.c b/Src/Builtins/sched.c
index 1ec3269bd..c1cc98354 100644
--- a/Src/Builtins/sched.c
+++ b/Src/Builtins/sched.c
@@ -211,7 +211,7 @@ bin_sched(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
 
 	    t = sch->time;
 	    tmp = localtime(&t);
-	    ztrftime(tbuf, 40, "%a %b %e %k:%M:%S", tmp);
+	    ztrftime(tbuf, 40, "%a %b %e %k:%M:%S", tmp, 0L);
 	    if (sch->flags & SCHEDFLAG_TRASH_ZLE)
 		flagstr = "-o ";
 	    else
diff --git a/Src/Modules/datetime.c b/Src/Modules/datetime.c
index a4e7eca86..00ebd2b49 100644
--- a/Src/Modules/datetime.c
+++ b/Src/Modules/datetime.c
@@ -130,7 +130,7 @@ bin_strftime(char *nam, char **argv, Options ops, UNUSED(int func))
     buffer = zalloc(bufsize);
 
     for (x=0; x < 4; x++) {
-        if (ztrftime(buffer, bufsize, argv[0], t) >= 0)
+        if (ztrftime(buffer, bufsize, argv[0], t, 0L) >= 0)
 	    break;
 	buffer = zrealloc(buffer, bufsize *= 2);
     }
diff --git a/Src/Modules/stat.c b/Src/Modules/stat.c
index edae0841e..6fc53894c 100644
--- a/Src/Modules/stat.c
+++ b/Src/Modules/stat.c
@@ -198,7 +198,7 @@ stattimeprint(time_t tim, char *outbuf, int flags)
     if (flags & STF_STRING) {
 	char *oend = outbuf + strlen(outbuf);
 	ztrftime(oend, 40, timefmt, (flags & STF_GMT) ? gmtime(&tim) :
-		 localtime(&tim));
+		 localtime(&tim), 0L);
 	if (flags & STF_RAW)
 	    strcat(oend, ")");
     }