-D is now a toggle
authorEdward Wang <edward@ucbvax.Berkeley.EDU>
Tue, 20 Sep 1983 01:29:56 +0000 (17:29 -0800)
committerEdward Wang <edward@ucbvax.Berkeley.EDU>
Tue, 20 Sep 1983 01:29:56 +0000 (17:29 -0800)
SCCS-vsn: usr.bin/window/main.c 3.12

usr/src/usr.bin/window/main.c

index bbff7d3..39560bd 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)main.c      3.11 83/09/14";
+static char *sccsid = "@(#)main.c      3.12 83/09/19";
 #endif
 
 #include "defs.h"
 #endif
 
 #include "defs.h"
@@ -40,7 +40,7 @@ char **argv;
                                dflag++;
                                break;
                        case 'D':
                                dflag++;
                                break;
                        case 'D':
-                               debug++;
+                               debug = !debug;
                                break;
                        case 'x':
                                xflag++;
                                break;
                        case 'x':
                                xflag++;