sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit b0e4b45e3b02d8693455d208f90809d8f091d63a
parent 136f2f3b6061d28565b2d9a603855fed9c2cac91
Author: sin <sin@2f30.org>
Date:   Tue Feb  4 16:49:18 +0000

No need to use do { } while (0) construct

Diffstat:
uudecode.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/uudecode.c b/uudecode.c @@ -154,9 +154,7 @@ uudecode(FILE *fp, FILE *outfp) #define DEC(c) (((c) - ' ') & 077) /* single character decode */ #define IS_DEC(c) ( (((c) - ' ') >= 0) && (((c) - ' ') <= 077 + 1) ) -#define OUT_OF_RANGE(c) do { \ - eprintf("character %c out of range: [%d-%d]",(c), 1+' ',077+' '+1); \ - } while (0) +#define OUT_OF_RANGE(c) eprintf("character %c out of range: [%d-%d]", (c), 1 + ' ', 077 + ' ' + 1) while (afgets(&bufb,&n,fp)) { p = bufb;