From 7d6d31cb79c4c3396e36eaaa66a0eb1c08b47a3e Mon Sep 17 00:00:00 2001
From: Dima Dorfman
Date: Sun, 17 Jun 2001 06:22:30 +0000
Subject: [PATCH] Satisfy gcc's parenthetical needs and clamp down with
WANRS=2.
Reviewed by: md5(1)
---
usr.bin/uuencode/Makefile | 1 +
usr.bin/uuencode/uuencode.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/usr.bin/uuencode/Makefile b/usr.bin/uuencode/Makefile
index dfd1d5972673..f5d98553d004 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 e8696e900d0a..d91222a7e851 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;