NetBSD-Bugs archive

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

port-sun2/42524: Missing parenthesis in sys/arch/sun2/dev/consinit.c .



>Number:         42524
>Category:       port-sun2
>Synopsis:       Missing parenthesis in sys/arch/sun2/dev/consinit.c .
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sun2-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 27 08:20:00 +0000 2009
>Originator:     Henning Petersen
>Release:        
>Organization:
>Environment:
>Description:
Missing parenthesis found with cppcheck.
>How-To-Repeat:

>Fix:
diff -u -r1.6 consinit.c
--- sys/arch/sun2/dev/consinit.c        11 Dec 2005 12:19:16 -0000      1.6
+++ sys/arch/sun2/dev/consinit.c        1 Dec 2009 09:15:02 -0000
@@ -271,7 +271,7 @@
                DBPRINT(("stdout package = %x\r\n", prom_stdout_node));
                DBPRINT(("buffer @ %p\r\n", buffer));
        
-               if (prom_stdin_node && prom_node_has_property(prom_stdin_node, 
"keyboard") {
+               if (prom_stdin_node && prom_node_has_property(prom_stdin_node, 
"keyboard")) {
 #if NKBD == 0          
                        printf("cninit: kdb/display not configured\n");
 #endif



Home | Main Index | Thread Index | Old Index