NetBSD-Bugs archive

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

bin/42873: Missing parenthesis in external/bsd/openldap/dist/libraries/libldap/os-ip.c



>Number:         42873
>Category:       bin
>Synopsis:       Missing parenthesis in 
>external/bsd/openldap/dist/libraries/libldap/os-ip.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 23 09:00:00 +0000 2010
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Missing parenthesis in external/bsd/openldap/dist/libraries/libldap/os-ip.c 
found by cppcheck.

>How-To-Repeat:

>Fix:
diff -u -r1.1.1.2 os-ip.c
--- external/bsd/openldap/dist/libraries/libldap/os-ip.c        20 May 2008 
00:05:30 -0000      1.1.1.2
+++ external/bsd/openldap/dist/libraries/libldap/os-ip.c        14 Feb 2010 
07:56:24 -0000
@@ -699,7 +699,7 @@
                char *herr;
 #ifdef NI_MAXHOST
                char hbuf[NI_MAXHOST];
-#elif defined( MAXHOSTNAMELEN
+#elif defined( MAXHOSTNAMELEN )
                char hbuf[MAXHOSTNAMELEN];
 #else
                char hbuf[256];



Home | Main Index | Thread Index | Old Index