Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/usr.sbin/pkg_install/lib Pull up revision 1.54 (requested...



details:   https://anonhg.NetBSD.org/src/rev/420337c1a278
branches:  netbsd-3
changeset: 576215:420337c1a278
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Jun 14 20:33:43 2005 +0000

description:
Pull up revision 1.54 (requested by wiz in ticket #455):
Move unsigned to where it belongs, to remove a cast.

diffstat:

 usr.sbin/pkg_install/lib/str.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r d0751b1c78b4 -r 420337c1a278 usr.sbin/pkg_install/lib/str.c
--- a/usr.sbin/pkg_install/lib/str.c    Tue Jun 14 20:33:36 2005 +0000
+++ b/usr.sbin/pkg_install/lib/str.c    Tue Jun 14 20:33:43 2005 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: str.c,v 1.50.2.3 2005/06/14 20:32:36 tron Exp $        */
+/*     $NetBSD: str.c,v 1.50.2.4 2005/06/14 20:33:43 tron Exp $        */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "Id: str.c,v 1.5 1997/10/08 07:48:21 charnier Exp";
 #else
-__RCSID("$NetBSD: str.c,v 1.50.2.3 2005/06/14 20:32:36 tron Exp $");
+__RCSID("$NetBSD: str.c,v 1.50.2.4 2005/06/14 20:33:43 tron Exp $");
 #endif
 #endif
 
@@ -94,10 +94,10 @@
  * Lowercase a whole string
  */
 void
-str_lowercase(char *s)
+str_lowercase(unsigned char *s)
 {
        for (; *s; s++) {
-               *s = tolower((unsigned char)*s);
+               *s = tolower(*s);
        }
 }
 



Home | Main Index | Thread Index | Old Index