Date: Sat, 11 May 2002 17:14:41 +0100 From: Hiten Pandya <hiten@uk.FreeBSD.org> To: des@FreeBSD.org Cc: current@FreeBSD.org Subject: re: alpha tinderbox failure Message-ID: <20020511161441.GA1568@hpdi.ath.cx>
index | next in thread | raw e-mail
[-- Attachment #1 --]
> ===> libtelnet
> cc1: warnings being treated as errors
> /.amd_mnt/freefall/host/d/home/des/tinderbox/src/crypto/telnet/libtelnet/kerberos.c: In function
> `kerberos4_cksum':
> /.amd_mnt/freefall/host/d/home/des/tinderbox/src/crypto/telnet/libtelnet/kerberos.c:496: warning:
> unreachable code at beginning of switch statement
> *** Error code 1
%%%
int
kerberos4_cksum(unsigned char *d, int n)
{
int ck = 0;
/*
* A comment is probably needed here for those not
* well versed in the "C" language. Yes, this is
* supposed to be a "switch" with the body of the
* "switch" being a "while" statement. The whole
* purpose of the switch is to allow us to jump into
* the middle of the while() loop, and then not have
* to do any more switch()s.
*
* Some compilers will spit out a warning message
* about the loop not being entered at the top.
*/
switch (n&03)
while (n > 0) {
case 0:
ck ^= (int)*d++ << 24;
--n;
case 3:
ck ^= (int)*d++ << 16;
--n;
case 2:
ck ^= (int)*d++ << 8;
--n;
case 1:
ck ^= (int)*d++;
--n;
}
return(ck);
}
%%%
Thanks.
Regards.
P.S. JFYI. :-)
--
Hiten Pandya
http://storm.uk.FreeBSD.org/~hiten
Finger hiten@storm.uk.FreeBSD.org for PGP public key
-- 4FB9 C4A9 4925 CF97 9BF3 ADDA 861D 5DBD E4E3 03C3
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE83UNxhh1dveTjA8MRApgMAJ47xPoDcitllzYVWRTHP2APBY5UzgCg4GWw
0m/NkNlzma24esbH34u2F4c=
=9I3X
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020511161441.GA1568>
