diff options
author | fanf <fanf@FreeBSD.org> | 2002-09-10 21:14:14 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2002-09-10 21:14:14 +0000 |
commit | c01083a28d592bb0d9edf0ecc9f3f93fdc65ebc0 (patch) | |
tree | 53390e54204cfa6c66c4724099d90b81500487e1 /usr.bin/uudecode | |
parent | 2ce47bcfdfb60e9388acc2d848f46e14a8f2e897 (diff) | |
download | FreeBSD-src-c01083a28d592bb0d9edf0ecc9f3f93fdc65ebc0.zip FreeBSD-src-c01083a28d592bb0d9edf0ecc9f3f93fdc65ebc0.tar.gz |
Fix style bugs in macros.
Diffstat (limited to 'usr.bin/uudecode')
-rw-r--r-- | usr.bin/uudecode/uudecode.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index 9235892..e23dfd7 100644 --- a/usr.bin/uudecode/uudecode.c +++ b/usr.bin/uudecode/uudecode.c @@ -252,16 +252,13 @@ decode2(void) } #define DEC(c) (((c) - ' ') & 077) /* single character decode */ -#define IS_DEC(c) ( (((c) - ' ') >= 0) && (((c) - ' ') <= 077 + 1) ) -/* #define IS_DEC(c) (1) */ +#define IS_DEC(c) ( (((c) - ' ') >= 0) && (((c) - ' ') <= 077 + 1) ) -#define OUT_OF_RANGE \ -{ \ - warnx( \ -"\n\tinput file: %s\n\tencoded file: %s\n\tcharacter out of range: [%d-%d]", \ - filename, buffn, 1 + ' ', 077 + ' ' + 1); \ - return (1); \ -} +#define OUT_OF_RANGE do { \ + warnx("%s: %s: character out of range: [%d-%d]", \ + filename, buffn, 1 + ' ', 077 + ' ' + 1); \ + return (1); \ +} while (0) /* * `n' is used to avoid writing out all the characters |