summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-15 17:32:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-15 17:32:43 +0000
commit6977ec485ff4a4da087e1b9f32510dac89dc24ea (patch)
tree804ecc5aa95bb4d4d6e83f92d8fbbefe37bc5d71 /lib
parent66facd15e4103082c557ec4b9ded7b275533ddca (diff)
proto repairs
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/i386/gen/ldexp.c4
-rw-r--r--lib/libc/compat-43/sethostid.c3
-rw-r--r--lib/libc/gen/daemon.c3
-rw-r--r--lib/libc/gen/devname.c6
-rw-r--r--lib/libc/gen/getdomainname.c3
-rw-r--r--lib/libc/gen/setdomainname.c3
-rw-r--r--lib/libc/gen/sethostname.c3
7 files changed, 17 insertions, 8 deletions
diff --git a/lib/libc/arch/i386/gen/ldexp.c b/lib/libc/arch/i386/gen/ldexp.c
index 578cba3b7ac..91aae3610cb 100644
--- a/lib/libc/arch/i386/gen/ldexp.c
+++ b/lib/libc/arch/i386/gen/ldexp.c
@@ -31,9 +31,11 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: ldexp.c,v 1.4 2003/06/02 20:18:30 millert Exp $";
+static char rcsid[] = "$OpenBSD: ldexp.c,v 1.5 2003/07/15 17:32:41 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
+#include <math.h>
+
/*
* ldexp(value, exp): return value * (2 ** exp).
*/
diff --git a/lib/libc/compat-43/sethostid.c b/lib/libc/compat-43/sethostid.c
index 659700e9771..84634322bfd 100644
--- a/lib/libc/compat-43/sethostid.c
+++ b/lib/libc/compat-43/sethostid.c
@@ -28,11 +28,12 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: sethostid.c,v 1.6 2003/06/11 21:03:10 deraadt Exp $";
+static char *rcsid = "$OpenBSD: sethostid.c,v 1.7 2003/07/15 17:32:42 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#include <sys/sysctl.h>
+#include <unistd.h>
int
sethostid(long hostid)
diff --git a/lib/libc/gen/daemon.c b/lib/libc/gen/daemon.c
index 828e92607cc..87af2fc9fa2 100644
--- a/lib/libc/gen/daemon.c
+++ b/lib/libc/gen/daemon.c
@@ -28,12 +28,13 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: daemon.c,v 1.4 2003/06/11 21:03:10 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: daemon.c,v 1.5 2003/07/15 17:32:41 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <fcntl.h>
#include <paths.h>
#include <unistd.h>
+#include <stdlib.h>
int
daemon(int nochdir, int noclose)
diff --git a/lib/libc/gen/devname.c b/lib/libc/gen/devname.c
index 8d57613bf1d..88c48841c22 100644
--- a/lib/libc/gen/devname.c
+++ b/lib/libc/gen/devname.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: devname.c,v 1.4 2003/06/11 21:03:10 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: devname.c,v 1.5 2003/07/15 17:32:41 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -40,10 +40,12 @@ static char rcsid[] = "$OpenBSD: devname.c,v 1.4 2003/06/11 21:03:10 deraadt Exp
#include <paths.h>
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
char *
-devname(dev_t dev, mode_t type)
+devname(int dev, int t)
{
+ mode_t type = t;
struct {
mode_t type;
dev_t dev;
diff --git a/lib/libc/gen/getdomainname.c b/lib/libc/gen/getdomainname.c
index d8afd8276c4..d5ef087abc8 100644
--- a/lib/libc/gen/getdomainname.c
+++ b/lib/libc/gen/getdomainname.c
@@ -28,11 +28,12 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: getdomainname.c,v 1.5 2003/06/11 21:03:10 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: getdomainname.c,v 1.6 2003/07/15 17:32:41 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#include <sys/sysctl.h>
+#include <unistd.h>
int
getdomainname(char *name, size_t namelen)
diff --git a/lib/libc/gen/setdomainname.c b/lib/libc/gen/setdomainname.c
index 8e1b40e829c..330cf63ce2c 100644
--- a/lib/libc/gen/setdomainname.c
+++ b/lib/libc/gen/setdomainname.c
@@ -28,11 +28,12 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: setdomainname.c,v 1.6 2003/06/02 20:18:34 millert Exp $";
+static char rcsid[] = "$OpenBSD: setdomainname.c,v 1.7 2003/07/15 17:32:41 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#include <sys/sysctl.h>
+#include <unistd.h>
int
setdomainname(const char *name, size_t namelen)
diff --git a/lib/libc/gen/sethostname.c b/lib/libc/gen/sethostname.c
index b695df3ad6c..46b2309ed50 100644
--- a/lib/libc/gen/sethostname.c
+++ b/lib/libc/gen/sethostname.c
@@ -28,11 +28,12 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: sethostname.c,v 1.6 2003/06/02 20:18:34 millert Exp $";
+static char rcsid[] = "$OpenBSD: sethostname.c,v 1.7 2003/07/15 17:32:41 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#include <sys/sysctl.h>
+#include <unistd.h>
int
sethostname(const char *name, size_t namelen)