summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-11-11 23:46:30 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-11-11 23:46:30 +0000
commit8e6d3d2112f833cd96a62c21371929a66ce1dfcf (patch)
tree6de872b71bc089964ebe32016917b1921fb57c5b /usr.sbin
parent12b31034d09624d0ab8d5ad33a140ac55cb09608 (diff)
Pass gcc -ansi -pedantic; Chad Loder
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/inetd/inetd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index 45d56d4dfed..cbbfc53bb51 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inetd.c,v 1.107 2002/09/06 19:46:52 deraadt Exp $ */
+/* $OpenBSD: inetd.c,v 1.108 2002/11/11 23:46:29 millert Exp $ */
/* $NetBSD: inetd.c,v 1.11 1996/02/22 11:14:41 mycroft Exp $ */
/*
* Copyright (c) 1983,1991 The Regents of the University of California.
@@ -41,7 +41,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)inetd.c 5.30 (Berkeley) 6/3/91";*/
-static char rcsid[] = "$OpenBSD: inetd.c,v 1.107 2002/09/06 19:46:52 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: inetd.c,v 1.108 2002/11/11 23:46:29 millert Exp $";
#endif /* not lint */
/*
@@ -191,7 +191,7 @@ sigset_t emptymask;
/* Reserve some descriptors, 3 stdio + at least: 1 log, 1 conf. file */
#define FD_MARGIN (8)
-typeof(((struct rlimit *)0)->rlim_cur) rlim_nofile_cur = OPEN_MAX;
+__typeof(((struct rlimit *)0)->rlim_cur) rlim_nofile_cur = OPEN_MAX;
struct rlimit rlim_nofile;
@@ -688,7 +688,7 @@ doconfig(void)
if (sep != 0) {
int i;
-#define SWAP(type, a, b) {type c=(type)a; (type)a=(type)b; (type)b=(type)c;}
+#define SWAP(type, a, b) {type c=(type)a; a=(type)b; b=(type)c;}
sigprocmask(SIG_BLOCK, &blockmask, &omask);
/*