zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <clint@zsh.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: What's datetime_nam ?
Date: Thu, 4 Jul 2002 12:48:48 -0400	[thread overview]
Message-ID: <20020704164848.GA29436@dman.com> (raw)
In-Reply-To: <1020704144600.ZM21191@candle.brasslantern.com>

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


      reply	other threads:[~2002-07-04 16:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-04 14:46 Bart Schaefer
2002-07-04 16:48 ` Clint Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020704164848.GA29436@dman.com \
    --to=clint@zsh.org \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).