All pastes #676191 Raw Edit

Someone

public text v1 · immutable
#676191 ·published 2007-08-30 21:02 UTC
rendered paste body
fille@monster:~/mydev/gpe/trunk/base/libgpewidget$ svn diff *.c gpe/*.h
Index: infoprint.c
===================================================================
--- infoprint.c (revision 9200)
+++ infoprint.c (working copy)
@@ -25,7 +25,7 @@
 #include <gpe/infoprint.h>
 
 void
-gpe_popup_infoprint (Display *dpy, char *s)
+gpe_popup_infoprint (Display *dpy, unsigned char *s)
 {
   Window w;
   static Atom infoprint_atom;
@@ -37,7 +37,7 @@
   if (w != None)
     {
       XChangeProperty (dpy, w, infoprint_atom, XA_STRING, 8,
-        PropModeReplace, s, strlen (s));
+        PropModeReplace, s, strlen ((const char *)s));
     }
   /* else infoprints not available */
 }
Index: infoprint-main.c
===================================================================
--- infoprint-main.c    (revision 9200)
+++ infoprint-main.c    (working copy)
@@ -37,7 +37,7 @@
 
   dpy = XOpenDisplay (NULL);
   
-  gpe_popup_infoprint (dpy, argv[1]);
+  gpe_popup_infoprint (dpy, (unsigned char *)argv[1]);
 
   XFlush (dpy);
   
Index: translabel.c
===================================================================
--- translabel.c        (revision 9200)
+++ translabel.c        (working copy)
@@ -71,7 +71,7 @@
              GSList *iter;
              
 #ifdef ENABLE_NLS
-             setlocale (LC_MESSAGES, prop);
+             setlocale (LC_MESSAGES, (const char *)prop);
 #endif
              for (iter = widgets; iter; iter = iter->next)
                {
Index: gpe/infoprint.h
===================================================================
--- gpe/infoprint.h     (revision 9200)
+++ gpe/infoprint.h     (working copy)
@@ -1,6 +1,6 @@
 #ifndef __GPE_INFOPRINT_H
 #define __GPE_INFOPRINT_H
 
-extern void gpe_popup_infoprint (Display *dpy, char *s);
+extern void gpe_popup_infoprint (Display *dpy, unsigned char *s);
 
 #endif