diff options
author | Tony Finch <fanf@FreeBSD.org> | 2002-09-10 21:14:14 +0000 |
---|---|---|
committer | Tony Finch <fanf@FreeBSD.org> | 2002-09-10 21:14:14 +0000 |
commit | abfd963f3e86ec19a5cafcdf75d11bd875c1ac47 (patch) | |
tree | 53390e54204cfa6c66c4724099d90b81500487e1 /usr.bin | |
parent | 0987aa405b44278457147e80b989a9ddebf75f75 (diff) | |
download | src-abfd963f3e86ec19a5cafcdf75d11bd875c1ac47.tar.gz src-abfd963f3e86ec19a5cafcdf75d11bd875c1ac47.zip |
Fix style bugs in macros.
Notes
Notes:
svn path=/head/; revision=103204
Diffstat (limited to 'usr.bin')
-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 92358920da65..e23dfd724790 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 |