summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-11-12 22:27:11 +0000
committerderaadt <deraadt@openbsd.org>2013-11-12 22:27:11 +0000
commitd2c628498841c9ac8784fce4f500adc0b8f7ca9d (patch)
tree15f50b7be9106db910bad82892c55a0413493186
parentTrick the compiler that volatile temporary is used while raising (diff)
downloadwireguard-openbsd-d2c628498841c9ac8784fce4f500adc0b8f7ca9d.tar.xz
wireguard-openbsd-d2c628498841c9ac8784fce4f500adc0b8f7ca9d.zip
ensure there are prototypes
-rw-r--r--usr.sbin/pstat/pstat.c3
-rw-r--r--usr.sbin/quot/quot.c3
-rw-r--r--usr.sbin/quotaon/quotaon.c9
-rw-r--r--usr.sbin/rdate/ntpleaps.c6
-rw-r--r--usr.sbin/rdate/rdate.c7
-rw-r--r--usr.sbin/rdate/rfc868time.c8
-rw-r--r--usr.sbin/repquota/repquota.c2
-rw-r--r--usr.sbin/rtadvd/dump.c7
-rw-r--r--usr.sbin/rtadvd/dump.h4
-rw-r--r--usr.sbin/rtsold/rtsold.h3
-rw-r--r--usr.sbin/tftpd/tftpd.c8
-rw-r--r--usr.sbin/ypserv/ypserv/ypserv.c4
12 files changed, 45 insertions, 19 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 1291e68f58c..68caeb969fc 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pstat.c,v 1.87 2013/10/22 16:40:27 guenther Exp $ */
+/* $OpenBSD: pstat.c,v 1.88 2013/11/12 22:27:11 deraadt Exp $ */
/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
@@ -117,6 +117,7 @@ int nfs_print(struct vnode *);
void swapmode(void);
void ttymode(void);
void ttyprt(struct itty *);
+void tty2itty(struct tty *tp, struct itty *itp);
void ufs_header(void);
int ufs_print(struct vnode *);
void ext2fs_header(void);
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c
index 3c096964b8f..8935b1a1758 100644
--- a/usr.sbin/quot/quot.c
+++ b/usr.sbin/quot/quot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: quot.c,v 1.23 2013/08/22 04:43:41 guenther Exp $ */
+/* $OpenBSD: quot.c,v 1.24 2013/11/12 22:27:12 deraadt Exp $ */
/*
* Copyright (C) 1991, 1994 Wolfgang Solfrank.
@@ -53,6 +53,7 @@ static char count;
static char unused;
static void (*func)(int, struct fs *, char *);
static int cmpusers(const void *, const void *);
+void quot(char *, char *);
static long blocksize;
static char *header;
static int headerlen;
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c
index cbfce7e737b..c906cdf636d 100644
--- a/usr.sbin/quotaon/quotaon.c
+++ b/usr.sbin/quotaon/quotaon.c
@@ -52,6 +52,14 @@ int gflag; /* operate on group quotas */
int uflag; /* operate on user quotas */
int vflag; /* verbose */
+void usage(char *whoami);
+int hasquota(struct fstab *fs, int type, char **qfnamep, int force);
+int quotaonoff(struct fstab *fs, int offmode, int type, char *qfpathname);
+int oneof(char *target, char *list[], int cnt);
+int readonly(struct fstab *fs);
+
+
+int
main(int argc, char *argv[])
{
struct fstab *fs;
@@ -133,6 +141,7 @@ main(int argc, char *argv[])
exit(errs);
}
+void
usage(char *whoami)
{
diff --git a/usr.sbin/rdate/ntpleaps.c b/usr.sbin/rdate/ntpleaps.c
index 1d728043e47..541f6375fa3 100644
--- a/usr.sbin/rdate/ntpleaps.c
+++ b/usr.sbin/rdate/ntpleaps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpleaps.c,v 1.10 2013/04/20 17:55:51 deraadt Exp $ */
+/* $OpenBSD: ntpleaps.c,v 1.11 2013/11/12 22:27:13 deraadt Exp $ */
/*
* Copyright (c) 2002 Thorsten Glaser. All rights reserved.
@@ -31,7 +31,7 @@
/* Leap second support for NTP clients (generic) */
-static const char RCSId[] = "$OpenBSD: ntpleaps.c,v 1.10 2013/04/20 17:55:51 deraadt Exp $";
+static const char RCSId[] = "$OpenBSD: ntpleaps.c,v 1.11 2013/11/12 22:27:13 deraadt Exp $";
/*
@@ -53,6 +53,8 @@ static const char RCSId[] = "$OpenBSD: ntpleaps.c,v 1.10 2013/04/20 17:55:51 der
static u_int64_t *leapsecs;
static unsigned int leapsecs_num;
+u_int32_t read_be_dword(u_int8_t *ptr);
+
int
ntpleaps_init(void)
diff --git a/usr.sbin/rdate/rdate.c b/usr.sbin/rdate/rdate.c
index fc5f4971e71..1c503dc64bf 100644
--- a/usr.sbin/rdate/rdate.c
+++ b/usr.sbin/rdate/rdate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rdate.c,v 1.29 2013/08/16 19:47:43 guenther Exp $ */
+/* $OpenBSD: rdate.c,v 1.30 2013/11/12 22:27:13 deraadt Exp $ */
/* $NetBSD: rdate.c,v 1.4 1996/03/16 12:37:45 pk Exp $ */
/*
@@ -57,10 +57,11 @@
#define logwtmp(a,b,c)
#endif
-void rfc868time_client (const char *, int, struct timeval *, struct timeval *, int);
-void ntp_client (const char *, int, struct timeval *, struct timeval *, int);
+void rfc868time_client(const char *, int, struct timeval *, struct timeval *, int);
+void ntp_client(const char *, int, struct timeval *, struct timeval *, int);
extern char *__progname;
+__dead void usage(void);
__dead void
usage(void)
diff --git a/usr.sbin/rdate/rfc868time.c b/usr.sbin/rdate/rfc868time.c
index 39a821a730b..7f1b23bc283 100644
--- a/usr.sbin/rdate/rfc868time.c
+++ b/usr.sbin/rdate/rfc868time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rfc868time.c,v 1.8 2013/04/20 17:55:46 deraadt Exp $ */
+/* $OpenBSD: rfc868time.c,v 1.9 2013/11/12 22:27:13 deraadt Exp $ */
/* $NetBSD: rdate.c,v 1.4 1996/03/16 12:37:45 pk Exp $ */
/*
@@ -58,9 +58,13 @@
/* seconds from midnight Jan 1900 - 1970 */
#define DIFFERENCE 2208988800UL
+void
+rfc868time_client(const char *hostname, int family, struct timeval *new,
+ struct timeval *adjust, int leapflag);
+
void
-rfc868time_client (const char *hostname, int family, struct timeval *new,
+rfc868time_client(const char *hostname, int family, struct timeval *new,
struct timeval *adjust, int leapflag)
{
struct addrinfo hints, *res0, *res;
diff --git a/usr.sbin/repquota/repquota.c b/usr.sbin/repquota/repquota.c
index 39ecebde192..57f2acda532 100644
--- a/usr.sbin/repquota/repquota.c
+++ b/usr.sbin/repquota/repquota.c
@@ -68,7 +68,7 @@ void usage(void);
int repquota(struct fstab *, int, char *);
int hasquota(struct fstab *, int, char **);
int oneof(char *, char *[], int);
-
+char *timeprt(time_t);
int
main(int argc, char *argv[])
{
diff --git a/usr.sbin/rtadvd/dump.c b/usr.sbin/rtadvd/dump.c
index df4882f4d15..a65befc9b9f 100644
--- a/usr.sbin/rtadvd/dump.c
+++ b/usr.sbin/rtadvd/dump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dump.c,v 1.13 2013/04/30 12:29:04 florian Exp $ */
+/* $OpenBSD: dump.c,v 1.14 2013/11/12 22:27:13 deraadt Exp $ */
/* $KAME: dump.c,v 1.27 2002/05/29 14:23:55 itojun Exp $ */
/*
@@ -61,6 +61,7 @@
extern struct ralist ralist;
static char *ether_str(struct sockaddr_dl *);
+char *lifetime(int);
static char *rtpref_str[] = {
"medium", /* 00 */
@@ -86,7 +87,7 @@ ether_str(sdl)
return(hbuf);
}
-char*
+char *
lifetime(int lt)
{
char *str;
@@ -99,7 +100,7 @@ lifetime(int lt)
}
void
-rtadvd_dump()
+rtadvd_dump(void)
{
struct rainfo *rai;
struct prefix *pfx;
diff --git a/usr.sbin/rtadvd/dump.h b/usr.sbin/rtadvd/dump.h
index 8a0e001c7dc..e4b3a53e918 100644
--- a/usr.sbin/rtadvd/dump.h
+++ b/usr.sbin/rtadvd/dump.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dump.h,v 1.3 2008/06/08 21:08:57 rainer Exp $ */
+/* $OpenBSD: dump.h,v 1.4 2013/11/12 22:27:13 deraadt Exp $ */
/* $KAME: dump.h,v 1.1 2000/05/23 11:31:26 itojun Exp $ */
/*
@@ -30,4 +30,4 @@
* SUCH DAMAGE.
*/
-void rtadvd_dump();
+void rtadvd_dump(void);
diff --git a/usr.sbin/rtsold/rtsold.h b/usr.sbin/rtsold/rtsold.h
index 23d0baea494..5b9e556ca85 100644
--- a/usr.sbin/rtsold/rtsold.h
+++ b/usr.sbin/rtsold/rtsold.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsold.h,v 1.16 2013/10/21 08:46:07 phessler Exp $ */
+/* $OpenBSD: rtsold.h,v 1.17 2013/11/12 22:27:13 deraadt Exp $ */
/* $KAME: rtsold.h,v 1.14 2002/05/31 10:10:03 itojun Exp $ */
/*
@@ -74,6 +74,7 @@ extern char **autoifprobe(u_int);
/* if.c */
extern int ifinit(void);
+int get_rdomain(char *);
extern int interface_up(char *);
extern int interface_status(struct ifinfo *);
extern int lladdropt_length(struct sockaddr_dl *);
diff --git a/usr.sbin/tftpd/tftpd.c b/usr.sbin/tftpd/tftpd.c
index e210be15030..a480e16c9e6 100644
--- a/usr.sbin/tftpd/tftpd.c
+++ b/usr.sbin/tftpd/tftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tftpd.c,v 1.16 2013/08/13 12:39:02 dlg Exp $ */
+/* $OpenBSD: tftpd.c,v 1.17 2013/11/12 22:27:13 deraadt Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@uq.edu.au>
@@ -188,6 +188,10 @@ int parse_options(struct tftp_client *, char *, size_t,
struct opt_client *);
int validate_access(struct tftp_client *, const char *);
+struct tftp_client *
+ client_alloc(void);
+void client_free(struct tftp_client *client);
+
struct formats {
const char *f_mode;
int (*f_getc)(struct tftp_client *);
@@ -561,7 +565,7 @@ tftpd_events(void)
}
struct tftp_client *
-client_alloc()
+client_alloc(void)
{
struct tftp_client *client;
diff --git a/usr.sbin/ypserv/ypserv/ypserv.c b/usr.sbin/ypserv/ypserv/ypserv.c
index 0f520456da6..cd562981de8 100644
--- a/usr.sbin/ypserv/ypserv/ypserv.c
+++ b/usr.sbin/ypserv/ypserv/ypserv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypserv.c,v 1.37 2010/01/20 23:20:28 schwarze Exp $ */
+/* $OpenBSD: ypserv.c,v 1.38 2013/11/12 22:27:13 deraadt Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@@ -45,9 +45,11 @@
#include <rpc/pmap_clnt.h>
#include <memory.h>
#include <syslog.h>
+#include <dbm.h>
#include "acl.h"
#include "yplog.h"
#include "ypdef.h"
+#include "ypserv.h"
#include <sys/wait.h>
void ypdb_init(void);