Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: What's datetime_nam ?
- X-seq: zsh-workers 17417
- From: Clint Adams <clint@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: What's datetime_nam ?
- Date: Thu, 4 Jul 2002 12:48:48 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <1020704144600.ZM21191@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1020704144600.ZM21191@xxxxxxxxxxxxxxxxxxxxxxx>
> 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