diff options
author | mike <mike@FreeBSD.org> | 2002-09-11 01:00:56 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-09-11 01:00:56 +0000 |
commit | 6c06606f5b28640ae9a4cf6b285b4cd467f1ee29 (patch) | |
tree | 06f850ff1802fe85137537cd374c1db9eb3e1894 /usr.bin/uudecode | |
parent | f69ecac521f57deb59c4284f72056c9b8e151c9d (diff) | |
download | FreeBSD-src-6c06606f5b28640ae9a4cf6b285b4cd467f1ee29.zip FreeBSD-src-6c06606f5b28640ae9a4cf6b285b4cd467f1ee29.tar.gz |
Unbreak world by fixing 4 syntax errors and 1 wrong variable type.
Diffstat (limited to 'usr.bin/uudecode')
-rw-r--r-- | usr.bin/uudecode/uudecode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index e23dfd7..82be8c0 100644 --- a/usr.bin/uudecode/uudecode.c +++ b/usr.bin/uudecode/uudecode.c @@ -153,7 +153,7 @@ int decode2(void) { int base64; - int n; + size_t n; char ch, *p, *q; void *mode; struct passwd *pw; @@ -270,7 +270,7 @@ decode2(void) if (n >= 3) { if (!(IS_DEC(*p) && IS_DEC(*(p + 1)) && IS_DEC(*(p + 2)) && IS_DEC(*(p + 3)))) - OUT_OF_RANGE + OUT_OF_RANGE; ch = DEC(p[0]) << 2 | DEC(p[1]) >> 4; putchar(ch); @@ -282,14 +282,14 @@ decode2(void) else { if (n >= 1) { if (!(IS_DEC(*p) && IS_DEC(*(p + 1)))) - OUT_OF_RANGE + OUT_OF_RANGE; ch = DEC(p[0]) << 2 | DEC(p[1]) >> 4; putchar(ch); } if (n >= 2) { if (!(IS_DEC(*(p + 1)) && IS_DEC(*(p + 2)))) - OUT_OF_RANGE + OUT_OF_RANGE; ch = DEC(p[1]) << 4 | DEC(p[2]) >> 2; putchar(ch); @@ -297,7 +297,7 @@ decode2(void) if (n >= 3) { if (!(IS_DEC(*(p + 2)) && IS_DEC(*(p + 3)))) - OUT_OF_RANGE + OUT_OF_RANGE; ch = DEC(p[2]) << 6 | DEC(p[3]); putchar(ch); } |