NetBSD-Bugs archive

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

kern/41862: Misplaced "))" and "{" .



>Number:         41862
>Category:       kern
>Synopsis:       Misplaced "))" and "{" .
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 09 11:05:00 +0000 2009
>Originator:     Henning Petersen
>Release:        current-NetBSD
>Organization:
>Environment:
>Description:
Misplaced "))" , "{" and no need for #else. 
>How-To-Repeat:

>Fix:
diff -u -r1.70 mscp_disk.c
--- sys/dev/mscp/mscp_disk.c    12 May 2009 14:37:59 -0000      1.70
+++ sys/dev/mscp/mscp_disk.c    9 Aug 2009 07:26:37 -0000
@@ -462,9 +462,8 @@
                        if ((error == 0) && (cmd == DIOCWDINFO
 #ifdef __HAVE_OLD_DISKLABEL
                            || cmd == ODIOCWDINFO
-#else
-                           )) {
 #endif
+                           )) {
                                ra->ra_wlabel = 1;
                                error = writedisklabel(dev, rastrategy, lp,0);
                                ra->ra_wlabel = 0;



Home | Main Index | Thread Index | Old Index