Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ftpd fix redundant declarations.



details:   https://anonhg.NetBSD.org/src/rev/64081a88201c
branches:  trunk
changeset: 503336:64081a88201c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 04 22:04:11 2001 +0000

description:
fix redundant declarations.

diffstat:

 libexec/ftpd/extern.h  |  6 +++++-
 libexec/ftpd/ftpd.c    |  5 ++---
 libexec/ftpd/logwtmp.c |  5 +++--
 3 files changed, 10 insertions(+), 6 deletions(-)

diffs (81 lines):

diff -r 497af3a7e96c -r 64081a88201c libexec/ftpd/extern.h
--- a/libexec/ftpd/extern.h     Sun Feb 04 21:59:52 2001 +0000
+++ b/libexec/ftpd/extern.h     Sun Feb 04 22:04:11 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extern.h,v 1.37 2000/12/18 02:32:51 lukem Exp $        */
+/*     $NetBSD: extern.h,v 1.38 2001/02/04 22:04:11 christos Exp $     */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -140,7 +140,9 @@
 void   init_curclass(void);
 void   logxfer(const char *, off_t, const char *, const char *,
            const struct timeval *, const char *);
+#if 0
 void   logwtmp(const char *, const char *, const char *);
+#endif
 struct tab *lookup(struct tab *, const char *);
 void   makedir(const char *);
 void   mlsd(const char *);
@@ -269,7 +271,9 @@
        mode_t           umask;         /* Umask to use */
 };
 
+#ifndef YYEMPTY
 extern  int            yyparse(void);
+#endif
 
 #ifndef        GLOBAL
 #define        GLOBAL  extern
diff -r 497af3a7e96c -r 64081a88201c libexec/ftpd/ftpd.c
--- a/libexec/ftpd/ftpd.c       Sun Feb 04 21:59:52 2001 +0000
+++ b/libexec/ftpd/ftpd.c       Sun Feb 04 22:04:11 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftpd.c,v 1.120 2001/01/16 02:50:29 cgd Exp $   */
+/*     $NetBSD: ftpd.c,v 1.121 2001/02/04 22:04:12 christos Exp $      */
 
 /*
  * Copyright (c) 1997-2000 The NetBSD Foundation, Inc.
@@ -109,7 +109,7 @@
 #if 0
 static char sccsid[] = "@(#)ftpd.c     8.5 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: ftpd.c,v 1.120 2001/01/16 02:50:29 cgd Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.121 2001/02/04 22:04:12 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -169,7 +169,6 @@
 
 int    data;
 jmp_buf        urgcatch;
-struct passwd *pw;
 int    sflag;
 int    stru;                   /* avoid C keyword */
 int    mode;
diff -r 497af3a7e96c -r 64081a88201c libexec/ftpd/logwtmp.c
--- a/libexec/ftpd/logwtmp.c    Sun Feb 04 21:59:52 2001 +0000
+++ b/libexec/ftpd/logwtmp.c    Sun Feb 04 22:04:11 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: logwtmp.c,v 1.15 2000/05/20 02:20:19 lukem Exp $       */
+/*     $NetBSD: logwtmp.c,v 1.16 2001/02/04 22:04:12 christos Exp $    */
 
 /*
  * Copyright (c) 1988, 1993
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)logwtmp.c  8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: logwtmp.c,v 1.15 2000/05/20 02:20:19 lukem Exp $");
+__RCSID("$NetBSD: logwtmp.c,v 1.16 2001/02/04 22:04:12 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -57,6 +57,7 @@
 #include <time.h>
 #include <unistd.h>
 #include <utmp.h>
+#include <util.h>
 
 #ifdef KERBEROS5
 #include <krb5/krb5.h>



Home | Main Index | Thread Index | Old Index