]> arthur.barton.de Git - netatalk.git/commitdiff
Fix EC macro
authorFrank Lahm <franklahm@googlemail.com>
Fri, 28 Sep 2012 14:56:27 +0000 (16:56 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Fri, 28 Sep 2012 14:56:27 +0000 (16:56 +0200)
include/atalk/errchk.h

index 094065b9d5a7d6a799680eba3f2eac91c197e65a..d304e632b37eb59df61bfe065cb04d40eb10599a 100644 (file)
@@ -18,9 +18,9 @@
 #define EC_INIT int ret = 0
 #define EC_STATUS(a) ret = (a)
 #define EC_FAIL do { ret = -1; goto cleanup; } while (0)
-#define EC_FAIL_LOG(a, ...)                     \
+#define EC_FAIL_LOG(...)                     \
     do {               \
-        LOG(log_error, logtype_default, a, __VA_ARGS__);   \
+        LOG(log_error, logtype_default, __VA_ARGS__);   \
         ret = -1;      \
         goto cleanup;  \
     } while (0)