Module Name:    src
Committed By:   christos
Date:           Sun Apr 18 04:54:34 UTC 2010

Modified Files:
        src/lib/libc/string: swab.c

Log Message:
simplify


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/string/swab.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/string/swab.c
diff -u src/lib/libc/string/swab.c:1.14 src/lib/libc/string/swab.c:1.15
--- src/lib/libc/string/swab.c:1.14	Sat Apr 17 17:42:43 2010
+++ src/lib/libc/string/swab.c	Sun Apr 18 00:54:33 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: swab.c,v 1.14 2010/04/17 21:42:43 christos Exp $	*/
+/*	$NetBSD: swab.c,v 1.15 2010/04/18 04:54:33 christos Exp $	*/
 
 /*
  * Copyright (c) 1988, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)swab.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: swab.c,v 1.14 2010/04/17 21:42:43 christos Exp $");
+__RCSID("$NetBSD: swab.c,v 1.15 2010/04/18 04:54:33 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -51,10 +51,7 @@
 	const char *fp;
 	char *tp;
 
-	/*LINTED: unportable &*/
-	if (len & 1)
-		len--;
-	if (len <= 0)
+	if (len <= 1)
 		return;
 
 	_DIAGASSERT(from != NULL);

Reply via email to