summaryrefslogtreecommitdiff
path: root/usr.bin/tftp
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
commit6d57a1a176004a7d8fc009cdcf760098f86e3263 (patch)
treeee423c619fad03813234b9362694a17f3a638f0b /usr.bin/tftp
parentc707cb295fc3cac8d8feb343e949e0dcf71b8476 (diff)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'usr.bin/tftp')
-rw-r--r--usr.bin/tftp/extern.h6
-rw-r--r--usr.bin/tftp/main.c46
-rw-r--r--usr.bin/tftp/tftp.c18
-rw-r--r--usr.bin/tftp/tftpsubs.h16
4 files changed, 43 insertions, 43 deletions
diff --git a/usr.bin/tftp/extern.h b/usr.bin/tftp/extern.h
index faddc0b22dd..043d9a8a2a7 100644
--- a/usr.bin/tftp/extern.h
+++ b/usr.bin/tftp/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.2 1996/06/26 05:40:33 deraadt Exp $ */
+/* $OpenBSD: extern.h,v 1.3 2002/02/16 21:27:55 millert Exp $ */
/* $NetBSD: extern.h,v 1.2 1994/12/08 09:51:24 jtc Exp $ */
/*
@@ -36,5 +36,5 @@
* @(#)extern.h 8.1 (Berkeley) 6/6/93
*/
-void recvfile __P((int, char *, char *));
-void sendfile __P((int, char *, char *));
+void recvfile(int, char *, char *);
+void sendfile(int, char *, char *);
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c
index 4e5b8c5fcb0..574b1983aba 100644
--- a/usr.bin/tftp/main.c
+++ b/usr.bin/tftp/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.9 2001/11/19 19:02:16 mpech Exp $ */
+/* $OpenBSD: main.c,v 1.10 2002/02/16 21:27:55 millert Exp $ */
/* $NetBSD: main.c,v 1.6 1995/05/21 16:54:10 mycroft Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: main.c,v 1.9 2001/11/19 19:02:16 mpech Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.10 2002/02/16 21:27:55 millert Exp $";
#endif /* not lint */
/* Many bug fixes are from Jim Guyton <guyton@rand-unix> */
@@ -92,33 +92,33 @@ jmp_buf toplevel;
void intr();
struct servent *sp;
-void get __P((int, char **));
-void help __P((int, char **));
-void modecmd __P((int, char **));
-void put __P((int, char **));
-void quit __P((int, char **));
-void setascii __P((int, char **));
-void setbinary __P((int, char **));
-void setpeer __P((int, char **));
-void setrexmt __P((int, char **));
-void settimeout __P((int, char **));
-void settrace __P((int, char **));
-void setverbose __P((int, char **));
-void status __P((int, char **));
-
-static __dead void command __P((void));
-
-static void getusage __P((char *));
-static int makeargv __P((void));
-static void putusage __P((char *));
-static void settftpmode __P((char *));
+void get(int, char **);
+void help(int, char **);
+void modecmd(int, char **);
+void put(int, char **);
+void quit(int, char **);
+void setascii(int, char **);
+void setbinary(int, char **);
+void setpeer(int, char **);
+void setrexmt(int, char **);
+void settimeout(int, char **);
+void settrace(int, char **);
+void setverbose(int, char **);
+void status(int, char **);
+
+static __dead void command(void);
+
+static void getusage(char *);
+static int makeargv(void);
+static void putusage(char *);
+static void settftpmode(char *);
#define HELPINDENT (sizeof("connect"))
struct cmd {
char *name;
char *help;
- void (*handler) __P((int, char **));
+ void (*handler)(int, char **);
};
char vhelp[] = "toggle verbose mode";
diff --git a/usr.bin/tftp/tftp.c b/usr.bin/tftp/tftp.c
index f2c024b0957..8809155d4cd 100644
--- a/usr.bin/tftp/tftp.c
+++ b/usr.bin/tftp/tftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tftp.c,v 1.9 2001/11/19 19:02:16 mpech Exp $ */
+/* $OpenBSD: tftp.c,v 1.10 2002/02/16 21:27:55 millert Exp $ */
/* $NetBSD: tftp.c,v 1.5 1995/04/29 05:55:25 cgd Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)tftp.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: tftp.c,v 1.9 2001/11/19 19:02:16 mpech Exp $";
+static char rcsid[] = "$OpenBSD: tftp.c,v 1.10 2002/02/16 21:27:55 millert Exp $";
#endif /* not lint */
/* Many bug fixes are from Jim Guyton <guyton@rand-unix> */
@@ -79,13 +79,13 @@ int timeout;
jmp_buf toplevel;
jmp_buf timeoutbuf;
-static void nak __P((int));
-static int makerequest __P((int, const char *, struct tftphdr *, const char *));
-static void printstats __P((const char *, unsigned long));
-static void startclock __P((void));
-static void stopclock __P((void));
-static void timer __P((int));
-static void tpacket __P((const char *, struct tftphdr *, int));
+static void nak(int);
+static int makerequest(int, const char *, struct tftphdr *, const char *);
+static void printstats(const char *, unsigned long);
+static void startclock(void);
+static void stopclock(void);
+static void timer(int);
+static void tpacket(const char *, struct tftphdr *, int);
/*
* Send the requested file.
diff --git a/usr.bin/tftp/tftpsubs.h b/usr.bin/tftp/tftpsubs.h
index 626f6c09999..d32b5c0d15c 100644
--- a/usr.bin/tftp/tftpsubs.h
+++ b/usr.bin/tftp/tftpsubs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tftpsubs.h,v 1.2 1996/06/26 05:40:37 deraadt Exp $ */
+/* $OpenBSD: tftpsubs.h,v 1.3 2002/02/16 21:27:55 millert Exp $ */
/* $NetBSD: tftpsubs.h,v 1.2 1994/12/08 09:51:32 jtc Exp $ */
/*
@@ -40,12 +40,12 @@
* Prototypes for read-ahead/write-behind subroutines for tftp user and
* server.
*/
-struct tftphdr *r_init __P((void));
-void read_ahead __P((FILE *, int));
-int readit __P((FILE *, struct tftphdr **, int));
+struct tftphdr *r_init(void);
+void read_ahead(FILE *, int);
+int readit(FILE *, struct tftphdr **, int);
-int synchnet __P((int));
+int synchnet(int);
-struct tftphdr *w_init __P((void));
-int write_behind __P((FILE *, int));
-int writeit __P((FILE *, struct tftphdr **, int, int));
+struct tftphdr *w_init(void);
+int write_behind(FILE *, int);
+int writeit(FILE *, struct tftphdr **, int, int);