OSSP CVS Repository

ossp - Check-in [5044]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5044
Date: 2005-Mar-30 21:22:50 (local)
2005-Mar-30 19:22:50 (UTC)
User:rse
Branch:
Comment: follow FlexeLint suggestion and surround parameter usage in macro with parenthesis
Tickets:
Inspections:
Files:
ossp-pkg/xds/xds.h.in      1.23 -> 1.24     4 inserted, 4 deleted

ossp-pkg/xds/xds.h.in 1.23 -> 1.24

--- xds.h.in     2004/09/12 17:32:14     1.23
+++ xds.h.in     2005/03/30 19:22:50     1.24
@@ -102,8 +102,8 @@
         xds_check_parameter(buffer_size != 0); \
         xds_check_parameter(used_buffer_size != NULL && *used_buffer_size == 0); \
         xds_check_parameter(args != NULL); \
-        *used_buffer_size = size; \
-        if (buffer_size < size) \
+        *used_buffer_size = (size); \
+        if (buffer_size < (size)) \
             return XDS_ERR_OVERFLOW; \
     } while (XDS_FALSE)
 
@@ -114,8 +114,8 @@
         xds_check_parameter(buffer_size != 0); \
         xds_check_parameter(used_buffer_size != NULL && *used_buffer_size == 0); \
         xds_check_parameter(args != NULL); \
-        *used_buffer_size = size; \
-        if (buffer_size < size) \
+        *used_buffer_size = (size); \
+        if (buffer_size < (size)) \
             return XDS_ERR_UNDERFLOW; \
     } while (XDS_FALSE)
 

CVSTrac 2.0.1