summaryrefslogtreecommitdiff
path: root/net/totd/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'net/totd/patches/patch-aa')
-rw-r--r--net/totd/patches/patch-aa24
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;