pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/wm/fluxconf Fixed gcc warnings (treated as errors) abo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2dc1ae00f4fb
branches:  trunk
changeset: 534971:2dc1ae00f4fb
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Nov 04 15:46:58 2007 +0000

description:
Fixed gcc warnings (treated as errors) about the signedness of pointer
targets.

diffstat:

 wm/fluxconf/distinfo         |   4 ++--
 wm/fluxconf/patches/patch-aa |  17 +++++++++++++----
 2 files changed, 15 insertions(+), 6 deletions(-)

diffs (43 lines):

diff -r b83302c5334e -r 2dc1ae00f4fb wm/fluxconf/distinfo
--- a/wm/fluxconf/distinfo      Sun Nov 04 15:37:07 2007 +0000
+++ b/wm/fluxconf/distinfo      Sun Nov 04 15:46:58 2007 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/04/15 09:39:39 xtraeme Exp $
+$NetBSD: distinfo,v 1.2 2007/11/04 15:46:58 rillig Exp $
 
 SHA1 (fluxconf-0.9.9.tar.gz) = c9e262d21b4badfcebccb0f500af10c854bda9eb
 RMD160 (fluxconf-0.9.9.tar.gz) = 0e9e29292d6679f0a43d6fb4d091015f66e4cf20
 Size (fluxconf-0.9.9.tar.gz) = 234276 bytes
-SHA1 (patch-aa) = 1ff7df6af20edb0cab1c4de7023b28e140326394
+SHA1 (patch-aa) = b30a016ed61e64672240f9eb392244839c9adad9
diff -r b83302c5334e -r 2dc1ae00f4fb wm/fluxconf/patches/patch-aa
--- a/wm/fluxconf/patches/patch-aa      Sun Nov 04 15:37:07 2007 +0000
+++ b/wm/fluxconf/patches/patch-aa      Sun Nov 04 15:46:58 2007 +0000
@@ -1,14 +1,23 @@
-$NetBSD: patch-aa,v 1.1.1.1 2006/04/15 09:39:39 xtraeme Exp $
+$NetBSD: patch-aa,v 1.2 2007/11/04 15:46:58 rillig Exp $
 
 --- src/fluxconf.c.orig        2004-12-08 17:58:37.000000000 +0100
-+++ src/fluxconf.c     2006-04-14 12:18:31.000000000 +0200
-@@ -263,7 +263,8 @@
++++ src/fluxconf.c     2007-11-04 16:45:55.000000000 +0100
+@@ -263,7 +263,8 @@ int fluxconf(int argc, char **argv, char
      GdkFont *head;
      GtkTooltips *tip;
      GList *items = NULL;
 -    char *initpath, *buf, **config;
 +    char *initpath, *buf;
-+    unsigned char **config;
++    char **config;
      FILE *file;
  
  #ifndef GTK2
+@@ -316,7 +317,7 @@ int fluxconf(int argc, char **argv, char
+                 if (y < QCM_START)
+                     s[y].val = atoi(config[i - 1] + msgsLen + 2);   /* < 7 are spinboxes */
+                 else if (y > QCM_START - 1 && y < QCM_STOP) {   /* TRUE or FALSE */
+-                    if (toupper(config[i - 1][msgsLen + 2]) == 'F')
++                    if (toupper((unsigned char)(config[i - 1][msgsLen + 2])) == 'F')
+                         s[y].val = 0;
+                     else
+                         s[y].val = 1;



Home | Main Index | Thread Index | Old Index