NetBSD-Bugs archive

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

bin/50872: src/usr.bin/netstat/if.c:147: weird coding ?

>Number:         50872
>Category:       bin
>Synopsis:       src/usr.bin/netstat/if.c:147: weird coding ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 29 17:45:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160229

src/usr.bin/netstat/if.c:147]: (style) Boolean result is used in bitwise operation. Clarify expression with parentheses.

Source code is

   if (!sflag & !pflag) {

Looks weird. Did someone muxup & and && ?



Home | Main Index | Thread Index | Old Index