fix for ANSI C
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 25 Apr 1988 07:53:56 +0000 (23:53 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 25 Apr 1988 07:53:56 +0000 (23:53 -0800)
SCCS-vsn: usr.bin/uucp/acucntrl/acucntrl.c 5.14
SCCS-vsn: usr.bin/uucp/uucico/conn.c 5.14
SCCS-vsn: usr.bin/uucp/libuu/ulockf.c 5.7
SCCS-vsn: usr.bin/uucp/uucp/uucp.c 5.8

usr/src/usr.bin/uucp/acucntrl/acucntrl.c
usr/src/usr.bin/uucp/libuu/ulockf.c
usr/src/usr.bin/uucp/uucico/conn.c
usr/src/usr.bin/uucp/uucp/uucp.c

index 0a34dd9..c517ea5 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)acucntrl.c 5.13    (Berkeley) %G%";
+static char sccsid[] = "@(#)acucntrl.c 5.14    (Berkeley) %G%";
 #endif
 
 /*  acucntrl - turn around tty line between dialin and dialout
 #endif
 
 /*  acucntrl - turn around tty line between dialin and dialout
@@ -126,8 +126,11 @@ char usage[] = "Usage: acucntrl {dis|en}able ttydX\n";
 struct utmp utmp;
 char resettty, resetmodem;
 int etcutmp;
 struct utmp utmp;
 char resettty, resetmodem;
 int etcutmp;
+extern int errno;
+extern char *sys_errlist[];
 off_t utmploc;
 off_t ttyslnbeg;
 off_t utmploc;
 off_t ttyslnbeg;
+off_t lseek();
 
 #define NAMSIZ sizeof(utmp.ut_name)
 #define        LINSIZ  sizeof(utmp.ut_line)
 
 #define NAMSIZ sizeof(utmp.ut_name)
 #define        LINSIZ  sizeof(utmp.ut_line)
@@ -142,11 +145,8 @@ int argc; char *argv[];
        char *device;
        int devfile;
        int uid, gid;
        char *device;
        int devfile;
        int uid, gid;
-       off_t lseek();
        struct passwd *getpwuid();
        char *rindex();
        struct passwd *getpwuid();
        char *rindex();
-       extern int errno;
-       extern char *sys_errlist[];
 
        /* check input arguments */
        if (argc!=3) {
 
        /* check input arguments */
        if (argc!=3) {
index d709ffd..9592db9 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)ulockf.c   5.6     (Berkeley) %G%";
+static char sccsid[] = "@(#)ulockf.c   5.7     (Berkeley) %G%";
 #endif
 
 #include "uucp.h"
 #endif
 
 #include "uucp.h"
@@ -12,6 +12,7 @@ static char sccsid[] = "@(#)ulockf.c  5.6     (Berkeley) %G%";
 char *Lockfile[MAXLOCKS];
 char *LockDirectory = LOCKDIR;
 int Nlocks = 0;
 char *Lockfile[MAXLOCKS];
 char *LockDirectory = LOCKDIR;
 int Nlocks = 0;
+extern int errno;
 
 /*LINTLIBRARY*/
 
 
 /*LINTLIBRARY*/
 
@@ -30,7 +31,6 @@ time_t atime;
        static char tempfile[NAMESIZE];
        char file[NAMESIZE];
        static int pid = -1;
        static char tempfile[NAMESIZE];
        char file[NAMESIZE];
        static int pid = -1;
-       extern int errno;
 
        if (pid < 0) {
                pid = getpid();
 
        if (pid < 0) {
                pid = getpid();
index ec19374..c4df5c2 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)conn.c     5.13    (Berkeley) %G%";
+static char sccsid[] = "@(#)conn.c     5.14    (Berkeley) %G%";
 #endif
 
 #include <signal.h>
 #endif
 
 #include <signal.h>
@@ -228,11 +228,13 @@ keeplooking:
  *             FAIL  -  failed
  */
 
  *             FAIL  -  failed
  */
 
+int nulldev();
+
 getto(flds)
 register char *flds[];
 {
        register struct condev *cd;
 getto(flds)
 register char *flds[];
 {
        register struct condev *cd;
-       int nulldev(), diropn();
+       int diropn();
        char *line;
 
        DEBUG(4, "getto: call no. %s ", flds[F_PHONE]);
        char *line;
 
        DEBUG(4, "getto: call no. %s ", flds[F_PHONE]);
index fabe6af..d99f601 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)uucp.c     5.7     (Berkeley) %G%";
+static char sccsid[] = "@(#)uucp.c     5.8     (Berkeley) %G%";
 #endif
 
 #include "uucp.h"
 #endif
 
 #include "uucp.h"
@@ -24,7 +24,7 @@ struct timeb Now;
 
 /* variables used to check if talking to more than one system. */
 int    xsflag = -1;
 
 /* variables used to check if talking to more than one system. */
 int    xsflag = -1;
-char   xsys[MAXBASENAME+1] = 0;
+char   xsys[MAXBASENAME+1];
 
 long Nbytes = 0;
 #define MAXBYTES 50000 /* maximun number of bytes of data per C. file */
 
 long Nbytes = 0;
 #define MAXBYTES 50000 /* maximun number of bytes of data per C. file */