summaryrefslogtreecommitdiffstats
path: root/libexec/mknetid
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-07-12 05:55:38 +0000
committerbde <bde@FreeBSD.org>1996-07-12 05:55:38 +0000
commitbefb0036502001d7bf5feb1cd20957641ba6c7e1 (patch)
tree4b52ba6bdf6f44462486afdc2a98b2662d1009eb /libexec/mknetid
parent8d1b1147d1a41d3800b90e3712dda5d028cef22c (diff)
downloadFreeBSD-src-befb0036502001d7bf5feb1cd20957641ba6c7e1.zip
FreeBSD-src-befb0036502001d7bf5feb1cd20957641ba6c7e1.tar.gz
Include <sys/types.h> before including <grp.h> so that this doesn't
depend on <stdio.h> bogusly including <sys/types.h> Reordered includes to satisfy KNF rules.
Diffstat (limited to 'libexec/mknetid')
-rw-r--r--libexec/mknetid/mknetid.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/libexec/mknetid/mknetid.c b/libexec/mknetid/mknetid.c
index 964844e..d64a7fd 100644
--- a/libexec/mknetid/mknetid.c
+++ b/libexec/mknetid/mknetid.c
@@ -35,23 +35,27 @@
* Center for Telecommunications Research
* Columbia University, New York City
*
- * $Id: mknetid.c,v 1.1.1.1 1996/06/25 20:26:38 wpaul Exp $
+ * $Id: mknetid.c,v 1.2 1996/06/27 05:42:01 wpaul Exp $
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <grp.h>
-#include <pwd.h>
-#include <netdb.h>
-#include <err.h>
+#include <sys/types.h>
+
#include <rpc/rpc.h>
#include <rpcsvc/yp_prot.h>
#include <rpcsvc/ypclnt.h>
+
+#include <err.h>
+#include <grp.h>
+#include <pwd.h>
+#include <netdb.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
#include "hash.h"
#ifndef lint
-static const char rcsid[] = "$Id: mknetid.c,v 1.1.1.1 1996/06/25 20:26:38 wpaul Exp $";
+static const char rcsid[] = "$Id: mknetid.c,v 1.2 1996/06/27 05:42:01 wpaul Exp $";
#endif
#define LINSIZ 1024
OpenPOWER on IntegriCloud