Slight rearrangement.

This commit is contained in:
mycroft 1995-02-20 00:15:06 +00:00
parent 19a789aae8
commit 30b00f8878
1 changed files with 11 additions and 18 deletions

View File

@ -16,11 +16,6 @@ int debug = 1;
int debug = 0; int debug = 0;
#endif #endif
#ifdef NETIF_DEBUG
int netif_debug = 0;
extern int toggle_netif_debug();
#endif
/* These get set by the bootp module */ /* These get set by the bootp module */
extern char rootpath[], bootfile[], hostname[], domainname[]; extern char rootpath[], bootfile[], hostname[], domainname[];
@ -40,6 +35,9 @@ extern int set_address();
#ifdef LE_DEBUG #ifdef LE_DEBUG
extern int toggle_le_debug(); extern int toggle_le_debug();
#endif #endif
#ifdef NETIF_DEBUG
extern int toggle_netif_debug();
#endif
struct cmds { struct cmds {
char *cmd_name; char *cmd_name;
@ -115,10 +113,8 @@ toggle_debug(s, argc, argv)
int s, argc; int s, argc;
char *argv[]; char *argv[];
{ {
if (debug)
debug = 0; debug = !debug;
else
debug = 1;
printf("debug=%d\n", debug); printf("debug=%d\n", debug);
} }
@ -129,23 +125,20 @@ toggle_le_debug(s, argc, argv)
{ {
extern int le_debug; extern int le_debug;
if (le_debug) le_debug = !le_debug;
le_debug = 0;
else
le_debug = 1;
printf("le_debug=%d\n", le_debug); printf("le_debug=%d\n", le_debug);
} }
#endif #endif
#ifdef NETIF_DEBUG #ifdef NETIF_DEBUG
int netif_debug = 0;
toggle_netif_debug(s, argc, argv) toggle_netif_debug(s, argc, argv)
int s, argc; int s, argc;
char *argv[]; char *argv[];
{ {
if (netif_debug)
netif_debug = 0; netif_debug = !netif_debug;
else
netif_debug = 1;
printf("netif_debug=%d\n", netif_debug); printf("netif_debug=%d\n", netif_debug);
} }
#endif #endif
@ -331,7 +324,7 @@ main()
bootdev = -1; /* network */ bootdev = -1; /* network */
printf("\n>> NetBSD NETWORK BOOT HP9000/%s CPU [%s]\n", printf("\n>> NetBSD NETWORK BOOT HP9000/%s CPU [%s]\n",
getmachineid(), "$Revision: 1.1 $"); getmachineid(), "$Revision: 1.2 $");
s = netif_open(NULL); /* XXX machdep may be "le" */ s = netif_open(NULL); /* XXX machdep may be "le" */
if (s < 0) if (s < 0)