summaryrefslogtreecommitdiffstats
path: root/usr.bin/uuencode
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-06-17 06:22:30 +0000
committerdd <dd@FreeBSD.org>2001-06-17 06:22:30 +0000
commit9e143295490a248326f97c1aaa2edaf4634b07c2 (patch)
treedf7a872b0415598466fec86a36b434fa606b47f2 /usr.bin/uuencode
parent2d7a18646d9dafd5b5b7707fa718b1a2bec62683 (diff)
downloadFreeBSD-src-9e143295490a248326f97c1aaa2edaf4634b07c2.zip
FreeBSD-src-9e143295490a248326f97c1aaa2edaf4634b07c2.tar.gz
Satisfy gcc's parenthetical needs and clamp down with WANRS=2.
Reviewed by: md5(1)
Diffstat (limited to 'usr.bin/uuencode')
-rw-r--r--usr.bin/uuencode/Makefile1
-rw-r--r--usr.bin/uuencode/uuencode.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/uuencode/Makefile b/usr.bin/uuencode/Makefile
index dfd1d59..f5d9855 100644
--- a/usr.bin/uuencode/Makefile
+++ b/usr.bin/uuencode/Makefile
@@ -2,6 +2,7 @@
# $FreeBSD$
PROG= uuencode
+WARNS?= 2
MAN= uuencode.1 uuencode.format.5
MLINKS= uuencode.1 uudecode.1 \
uuencode.format.5 uuencode.5
diff --git a/usr.bin/uuencode/uuencode.c b/usr.bin/uuencode/uuencode.c
index e8696e9..d91222a 100644
--- a/usr.bin/uuencode/uuencode.c
+++ b/usr.bin/uuencode/uuencode.c
@@ -120,11 +120,11 @@ encode()
ch = ENC(ch);
if (putchar(ch) == EOF)
break;
- ch = (*p << 4) & 060 | (p[1] >> 4) & 017;
+ ch = ((*p << 4) & 060) | ((p[1] >> 4) & 017);
ch = ENC(ch);
if (putchar(ch) == EOF)
break;
- ch = (p[1] << 2) & 074 | (p[2] >> 6) & 03;
+ ch = ((p[1] << 2) & 074) | ((p[2] >> 6) & 03);
ch = ENC(ch);
if (putchar(ch) == EOF)
break;
OpenPOWER on IntegriCloud