24 lines
649 B
Text
24 lines
649 B
Text
$NetBSD: patch-aa,v 1.4 2006/06/26 11:20:47 rillig Exp $
|
|
|
|
Fixed gcc warning: subscript has type `char'.
|
|
|
|
--- totd.c.orig 2005-02-02 12:10:31.000000000 +0100
|
|
+++ totd.c 2006-06-26 13:18:42.000000000 +0200
|
|
@@ -167,7 +167,7 @@ int main (int argc, char **argv) {
|
|
}
|
|
|
|
if (T.user) {
|
|
- if (isdigit(T.user[0])) {
|
|
+ if (isdigit((unsigned char)(T.user[0]))) {
|
|
T.uid = atoi(T.user);
|
|
pwd_p = NULL;
|
|
} else {
|
|
@@ -191,7 +191,7 @@ to: %s", T.user);
|
|
}
|
|
|
|
if (T.group) {
|
|
- if (isdigit(T.group[0])) {
|
|
+ if (isdigit((unsigned char)(T.group[0]))) {
|
|
T.gid = atoi(T.group);
|
|
} else {
|
|
struct group *grp_p;
|