From: Uwe Hermann Date: Fri, 3 Apr 2015 15:29:52 +0000 (+0200) Subject: Fix indentation of a switch(). X-Git-Tag: libserialport-0.1.1~71 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b344a40bb2c4ba82b3c51e7fb893d872a6302089;p=libserialport.git Fix indentation of a switch(). --- diff --git a/libserialport_internal.h b/libserialport_internal.h index 329c378..27fae2a 100644 --- a/libserialport_internal.h +++ b/libserialport_internal.h @@ -187,11 +187,11 @@ extern void (*sp_debug_handler)(const char *format, ...); } while (0) #define RETURN_CODEVAL(x) do { \ switch (x) { \ - case SP_OK: RETURN_CODE(SP_OK); \ - case SP_ERR_ARG: RETURN_CODE(SP_ERR_ARG); \ - case SP_ERR_FAIL: RETURN_CODE(SP_ERR_FAIL); \ - case SP_ERR_MEM: RETURN_CODE(SP_ERR_MEM); \ - case SP_ERR_SUPP: RETURN_CODE(SP_ERR_SUPP); \ + case SP_OK: RETURN_CODE(SP_OK); \ + case SP_ERR_ARG: RETURN_CODE(SP_ERR_ARG); \ + case SP_ERR_FAIL: RETURN_CODE(SP_ERR_FAIL); \ + case SP_ERR_MEM: RETURN_CODE(SP_ERR_MEM); \ + case SP_ERR_SUPP: RETURN_CODE(SP_ERR_SUPP); \ } \ } while (0) #define RETURN_OK() RETURN_CODE(SP_OK);