aboutsummaryrefslogtreecommitdiff
path: root/libexec/mknetid
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1996-07-12 05:55:38 +0000
committerBruce Evans <bde@FreeBSD.org>1996-07-12 05:55:38 +0000
commit884d83ff09b9e8e96d8d8d583412c4be70178cd9 (patch)
tree4b52ba6bdf6f44462486afdc2a98b2662d1009eb /libexec/mknetid
parent8d00dd680c7faef6d5dd2184c2ffa45e34198211 (diff)
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.
Notes
svn path=/head/; revision=17115
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 964844e8dcd1..d64a7fd644fb 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