summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorfanf <fanf@FreeBSD.org>2002-09-10 21:14:14 +0000
committerfanf <fanf@FreeBSD.org>2002-09-10 21:14:14 +0000
commitc01083a28d592bb0d9edf0ecc9f3f93fdc65ebc0 (patch)
tree53390e54204cfa6c66c4724099d90b81500487e1 /usr.bin
parent2ce47bcfdfb60e9388acc2d848f46e14a8f2e897 (diff)
downloadFreeBSD-src-c01083a28d592bb0d9edf0ecc9f3f93fdc65ebc0.zip
FreeBSD-src-c01083a28d592bb0d9edf0ecc9f3f93fdc65ebc0.tar.gz
Fix style bugs in macros.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/uudecode/uudecode.c15
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
OpenPOWER on IntegriCloud