Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/sysinst Remove duplicate sys/sysctl.h inclusio...



details:   https://anonhg.NetBSD.org/src/rev/6589731c95f1
branches:  trunk
changeset: 751332:6589731c95f1
user:      ahoka <ahoka%NetBSD.org@localhost>
date:      Mon Feb 01 00:06:18 2010 +0000

description:
Remove duplicate sys/sysctl.h inclusion and put includes in alpabetic
order.

diffstat:

 distrib/utils/sysinst/net.c |  25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)

diffs (49 lines):

diff -r b05ca93c80e4 -r 6589731c95f1 distrib/utils/sysinst/net.c
--- a/distrib/utils/sysinst/net.c       Sun Jan 31 22:53:56 2010 +0000
+++ b/distrib/utils/sysinst/net.c       Mon Feb 01 00:06:18 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: net.c,v 1.124 2010/01/13 07:48:57 martin Exp $ */
+/*     $NetBSD: net.c,v 1.125 2010/02/01 00:06:18 ahoka Exp $  */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -45,29 +45,26 @@
 #include <curses.h>
 #include <time.h>
 #include <unistd.h>
+#include <arpa/inet.h>
+#include <net/if.h>
+#include <net/if_media.h>
+#include <netinet/in.h>
+#include <sys/ioctl.h>
 #include <sys/param.h>
+#include <sys/resource.h>
+#include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/statvfs.h>
-#ifdef INET6
+#include <sys/statvfs.h>
 #include <sys/sysctl.h>
-#endif
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <sys/statvfs.h>
-#include <netinet/in.h>
-#include <net/if.h>
-#include <net/if_media.h>
-#include <arpa/inet.h>
+#include <sys/wait.h>
+
 #include "defs.h"
 #include "md.h"
 #include "msg_defs.h"
 #include "menu_defs.h"
 #include "txtwalk.h"
 
-#include <sys/wait.h>
-#include <sys/resource.h>
-#include <sys/sysctl.h>
-
 int network_up = 0;
 /* Access to network information */
 static char *net_devices;



Home | Main Index | Thread Index | Old Index