zsh-workers
 help / color / mirror / code / Atom feed
* What's datetime_nam ?
@ 2002-07-04 14:46 Bart Schaefer
  2002-07-04 16:48 ` Clint Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2002-07-04 14:46 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: What's datetime_nam ?
  2002-07-04 14:46 What's datetime_nam ? Bart Schaefer
@ 2002-07-04 16:48 ` Clint Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 2002-07-04 16:48 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-workers

> 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;


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-04 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-04 14:46 What's datetime_nam ? Bart Schaefer
2002-07-04 16:48 ` Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).