Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 2015 06:59:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201728] usr/src/usr.bin/ipcs/ipcs.c: 3 * bad if ?
Message-ID:  <bug-201728-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201728

            Bug ID: 201728
           Summary: usr/src/usr.bin/ipcs/ipcs.c: 3 * bad if ?
           Product: Base System
           Version: 10.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: dcb314@hotmail.com

1.

 [usr/src/usr.bin/ipcs/ipcs.c:227]: (style) Expression is always false because
'else if' condition matches previous condition at line 198.

Source code is

  if ((display & (MSGINFO | MSGTOTAL))) {
         ...
    } else
        if (display & (MSGINFO | MSGTOTAL)) {

2.

[usr/src/usr.bin/ipcs/ipcs.c:262]: (style) Expression is always false because
'else if' condition matches previous condition at line 234.

3.

[usr/src/usr.bin/ipcs/ipcs.c:299]: (style) Expression is always false because
'else if' condition matches previous condition at line 269.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201728-8>