lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #34581] missing parentheses in udplite sockets code


From: Amir Shalem
Subject: [lwip-devel] [bug #34581] missing parentheses in udplite sockets code
Date: Mon, 17 Oct 2011 23:32:12 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1

URL:
  <http://savannah.nongnu.org/bugs/?34581>

                 Summary: missing parentheses in udplite sockets code
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: amirshalem
            Submitted on: Mon 17 Oct 2011 11:32:11 PM GMT
                Category: sockets
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: CVS Head

    _______________________________________________________

Details:

gcc recommends suggest parentheses around ‘&&’ within ‘||’:

-      if ((*(int*)optval != 0) && ((*(int*)optval < 8)) || (*(int*)optval >
0xffff)) {
+      if ((*(int*)optval != 0) && (((*(int*)optval < 8)) || (*(int*)optval >
0xffff))) {

add patch to fix those bugs

thanks,
amir shalem




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?34581>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]