From 30b00f887889bb1552de5cf8456ae33e98d3ed40 Mon Sep 17 00:00:00 2001 From: mycroft Date: Mon, 20 Feb 1995 00:15:06 +0000 Subject: [PATCH] Slight rearrangement. --- sys/arch/hp300/stand/netboot.c | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/sys/arch/hp300/stand/netboot.c b/sys/arch/hp300/stand/netboot.c index b95969ae0033..195b9bcdef2b 100644 --- a/sys/arch/hp300/stand/netboot.c +++ b/sys/arch/hp300/stand/netboot.c @@ -16,11 +16,6 @@ int debug = 1; int debug = 0; #endif -#ifdef NETIF_DEBUG -int netif_debug = 0; -extern int toggle_netif_debug(); -#endif - /* These get set by the bootp module */ extern char rootpath[], bootfile[], hostname[], domainname[]; @@ -40,6 +35,9 @@ extern int set_address(); #ifdef LE_DEBUG extern int toggle_le_debug(); #endif +#ifdef NETIF_DEBUG +extern int toggle_netif_debug(); +#endif struct cmds { char *cmd_name; @@ -115,10 +113,8 @@ toggle_debug(s, argc, argv) int s, argc; char *argv[]; { - if (debug) - debug = 0; - else - debug = 1; + + debug = !debug; printf("debug=%d\n", debug); } @@ -129,23 +125,20 @@ toggle_le_debug(s, argc, argv) { extern int le_debug; - if (le_debug) - le_debug = 0; - else - le_debug = 1; + le_debug = !le_debug; printf("le_debug=%d\n", le_debug); } #endif #ifdef NETIF_DEBUG +int netif_debug = 0; + toggle_netif_debug(s, argc, argv) int s, argc; char *argv[]; { - if (netif_debug) - netif_debug = 0; - else - netif_debug = 1; + + netif_debug = !netif_debug; printf("netif_debug=%d\n", netif_debug); } #endif @@ -331,7 +324,7 @@ main() bootdev = -1; /* network */ 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" */ if (s < 0)