diff options
author | martin <martin> | 2006-06-02 09:08:15 +0000 |
---|---|---|
committer | martin <martin> | 2006-06-02 09:08:15 +0000 |
commit | 6bf11ecebc4c9f6a94410a7ac32116ef12d83768 (patch) | |
tree | df1e223cb1be18202a131c7c81363c112167d608 | |
parent | 8b99b5c8c8c344e4ad2b8bfbfd5ae9910c5aee3a (diff) | |
download | pkgsrc-6bf11ecebc4c9f6a94410a7ac32116ef12d83768.tar.gz |
Make it gcc4 friendly.
Cast args to ctype-macros to unsigned char.
-rw-r--r-- | games/xmahjongg/distinfo | 4 | ||||
-rw-r--r-- | games/xmahjongg/patches/patch-aa | 13 | ||||
-rw-r--r-- | games/xmahjongg/patches/patch-ab | 16 |
3 files changed, 32 insertions, 1 deletions
diff --git a/games/xmahjongg/distinfo b/games/xmahjongg/distinfo index bbca646b1c1..b90229acbac 100644 --- a/games/xmahjongg/distinfo +++ b/games/xmahjongg/distinfo @@ -1,5 +1,7 @@ -$NetBSD: distinfo,v 1.5 2005/02/23 23:12:04 agc Exp $ +$NetBSD: distinfo,v 1.6 2006/06/02 09:08:15 martin Exp $ SHA1 (xmahjongg-3.6.1.tar.gz) = 35e380e53412568e6af7f4fcc1677693f52fc60e RMD160 (xmahjongg-3.6.1.tar.gz) = acfc0161322b22296639dff313bae8d57e012618 Size (xmahjongg-3.6.1.tar.gz) = 462833 bytes +SHA1 (patch-aa) = 5305cfb0c0c8c0fcc507bc3730043331255a94a5 +SHA1 (patch-ab) = d3c2574c8de7e85c8e38670017d0eda64fe3b0be diff --git a/games/xmahjongg/patches/patch-aa b/games/xmahjongg/patches/patch-aa new file mode 100644 index 00000000000..85721e5ffb4 --- /dev/null +++ b/games/xmahjongg/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.5 2006/06/02 09:08:15 martin Exp $ + +--- permstr.hh.orig 2006-06-02 09:57:39.000000000 +0200 ++++ permstr.hh 2006-06-02 09:57:50.000000000 +0200 +@@ -93,7 +93,7 @@ operator!=(const char *a, PermString b) + inline int + hashcode(PermString s) + { +- return (int)(s.cc()); ++ return (int)(intptr_t)(s.cc()); + } + + #endif diff --git a/games/xmahjongg/patches/patch-ab b/games/xmahjongg/patches/patch-ab new file mode 100644 index 00000000000..5f04f62b909 --- /dev/null +++ b/games/xmahjongg/patches/patch-ab @@ -0,0 +1,16 @@ +$NetBSD: patch-ab,v 1.4 2006/06/02 09:08:15 martin Exp $ + +--- giftoc.c.orig 1999-08-15 21:03:06.000000000 +0200 ++++ giftoc.c 2006-06-02 11:02:19.000000000 +0200 +@@ -192,9 +192,9 @@ or: giftoc -makename [OPTIONS] FILE [ + sin = strrchr(file_name, PATHNAME_SEPARATOR) + 1; + if (!sin) sin = file_name; + sout = rec_name = (char *)fmalloc(strlen(sin) + 2); +- if (isdigit(*sin)) *sout++ = 'N'; ++ if (isdigit((unsigned char)*sin)) *sout++ = 'N'; + for (; *sin; sin++, sout++) +- if (isalnum(*sin)) ++ if (isalnum((unsigned char)*sin)) + *sout = *sin; + else + *sout = '_'; |