[Pcsclite-cvs-commit] r4755 - /trunk/PCSC/src/lassert.h

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Feb 12 10:35:31 UTC 2010


Author: rousseau
Date: Fri Feb 12 10:35:30 2010
New Revision: 4755

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4755
Log:
Fix splint error
src/pcsc-wirecheck-dist.c:19:164: Body of if clause of if statement is empty

Modified:
    trunk/PCSC/src/lassert.h

Modified: trunk/PCSC/src/lassert.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/lassert.h?rev=4755&op=diff
==============================================================================
--- trunk/PCSC/src/lassert.h (original)
+++ trunk/PCSC/src/lassert.h Fri Feb 12 10:35:30 2010
@@ -19,9 +19,8 @@
 
 #define LASSERT(cond)                                                   \
     ({                                                                  \
-        if (cond)                                                       \
-            ;                                                           \
-        else {                                                          \
+        if (! (cond))                                                     \
+        {                                                               \
             fprintf (stderr, "%s:%d: assertion FAILED: " #cond "\n",    \
                      __FILE__, __LINE__);                               \
             FAIL;                                                       \
@@ -30,9 +29,8 @@
 
 #define LASSERTF(cond, fmt, a...)                                       \
     ({                                                                  \
-        if (cond)                                                       \
-            ;                                                           \
-        else {                                                          \
+        if (! (cond))                                                     \
+        {                                                               \
             fprintf (stderr, "%s:%d: assertion FAILED: " #cond ": " fmt, \
                      __FILE__, __LINE__, ## a);                         \
             FAIL;                                                       \




More information about the Pcsclite-cvs-commit mailing list