Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: What's datetime_nam ?



> Src/Modules/datetime.c: In function `bin_strftime':
> Src/Modules/datetime.c:39: warning: unused variable `ret'
> Src/Modules/datetime.c: At top level:
> Src/Modules/datetime.c:34: warning: `datetime_nam' defined but not used

Artifact from a time when there was a bit more functionality intended,
I think.

Index: Src/Modules/datetime.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/datetime.c,v
retrieving revision 1.1
diff -u -r1.1 datetime.c
--- Src/Modules/datetime.c	26 May 2002 22:43:57 -0000	1.1
+++ Src/Modules/datetime.c	4 Jul 2002 16:47:21 -0000
@@ -31,12 +31,10 @@
 #include "datetime.pro"
 #include <time.h>
 
-static char datetime_nam[] = "datetime";
-
 static int
 bin_strftime(char *nam, char **argv, char *ops, int func)
 {
-    int ret = 0, bufsize, x;
+    int bufsize, x;
     char *endptr = NULL, *buffer = NULL;
     time_t secs;
     struct tm *t;



Messages sorted by: Reverse Date, Date, Thread, Author