(my_strupr): cast away some stupid warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5725 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997 - 1999 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -49,9 +49,10 @@ static void
|
|||||||
my_strupr(char *s)
|
my_strupr(char *s)
|
||||||
{
|
{
|
||||||
char *p = s;
|
char *p = s;
|
||||||
|
|
||||||
while(*p){
|
while(*p){
|
||||||
if(islower(*p))
|
if(islower((unsigned char)*p))
|
||||||
*p = toupper(*p);
|
*p = toupper((unsigned char)*p);
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user