PERFORCE change 94940 for review

Warner Losh imp at FreeBSD.org
Mon Apr 10 18:57:18 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=94940

Change 94940 by imp at imp_Speedy on 2006/04/10 18:56:56

	Nits, but important ones that makes the download work.

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/kb920x/boot0/xmodem.c#4 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/kb920x/boot0/xmodem.c#4 (text+ko) ====

@@ -55,7 +55,7 @@
 		goto err;
 	if ((ch = getc(1)) == -1)
 		goto err;
-	if (ch != ~blocknum & 0xff)
+	if (ch != (~blocknum & 0xff))
 		goto err;
 	
 	for (size = 0; size < PACKET_SIZE; ++size) {
@@ -73,10 +73,10 @@
 
 	chk &= 0xFFFF;
 
-	if (((ch = getc(1)) == -1) || (ch & 0xff != ((chk >> 8) & 0xFF)))
-		goto err;
-	if (((ch = getc(1)) == -1) || (ch & 0xff != (chk & 0xFF)))
-		goto err;
+	if (((ch = getc(1)) == -1) || ((ch & 0xff) != ((chk >> 8) & 0xFF)))
+	    goto err;
+	if (((ch = getc(1)) == -1) || ((ch & 0xff) != (chk & 0xFF)))
+	    goto err;
 	putc(ACK);
 
 	return (1);


More information about the p4-projects mailing list