diff options
author | rillig <rillig@pkgsrc.org> | 2006-06-26 11:20:47 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-06-26 11:20:47 +0000 |
commit | 0d33369a6e58c2c561354b9c939e6c15d85c9cd0 (patch) | |
tree | a550a8ac9c8719c8d58292cb657a67e4a490c361 /net/totd/patches | |
parent | aed18f62a20d97c9b55283fb8fe1b33e075072d8 (diff) | |
download | pkgsrc-0d33369a6e58c2c561354b9c939e6c15d85c9cd0.tar.gz |
Fixed gcc warnings.
Diffstat (limited to 'net/totd/patches')
-rw-r--r-- | net/totd/patches/patch-aa | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/totd/patches/patch-aa b/net/totd/patches/patch-aa new file mode 100644 index 00000000000..278ebe67fd5 --- /dev/null +++ b/net/totd/patches/patch-aa @@ -0,0 +1,24 @@ +$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; |