nsswitch: Fix wbclient BAIL macros.
authorAndreas Schneider <asn@samba.org>
Mon, 17 Dec 2012 09:39:10 +0000 (10:39 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 21 Dec 2012 12:56:00 +0000 (13:56 +0100)
In the code you normally use:

BAIL_ON_WBC_ERROR;

but the last ; is statement never reached, so dead code.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
nsswitch/libwbclient/wbc_err_internal.h

index 83364b8cd9713df1712271be411bab0399a2bc3a..dd8e7f20a52dc94f4ed3c0633b21d518a7d2014c 100644 (file)
@@ -29,7 +29,7 @@
                if (!WBC_ERROR_IS_OK(x)) {      \
                        goto done;              \
                }                               \
-       } while(0);
+       } while(0)
 
 #define BAIL_ON_PTR_ERROR(x, status)                    \
        do {                                            \
@@ -39,7 +39,7 @@
                } else {                                \
                        status = WBC_ERR_SUCCESS;       \
                }                                       \
-       } while (0);
+       } while (0)
 
 
 #endif /* _WBC_ERR_INTERNAL_H */