Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/eesh


Modified Files:
        E.h comms.c lists.c main.c 


Log Message:
Enable compiling with -Wwrite-strings (trivial fixups).
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/eesh/E.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- E.h 20 Mar 2004 15:36:32 -0000      1.16
+++ E.h 21 Mar 2004 01:37:31 -0000      1.17
@@ -105,8 +105,8 @@
 void               *Erealloc(void *ptr, int size);
 void                Efree(void *ptr);
 
-void               *FindItem(char *name, int id, int find_by, int type);
-void                AddItem(void *item, char *name, int id, int type);
+void               *FindItem(const char *name, int id, int find_by, int type);
+void                AddItem(void *item, const char *name, int id, int type);
 void               *RemoveItem(char *name, int id, int find_by, int type);
 void              **ListItemType(int *num, int type);
 char              **ListItems(int *num, int type);
@@ -116,7 +116,7 @@
 
 void                CommsSetup(void);
 void                CommsFindCommsWindow(void);
-void                CommsSend(Client * c, char *s);
+void                CommsSend(Client * c, const char *s);
 char               *CommsGet(Client ** c, XEvent * ev);
 Client             *MakeClient(Window win);
 void                ListFreeClient(void *ptr);
@@ -219,7 +219,7 @@
 }
 #endif
 
-void                Alert(char *fmt, ...);
+void                Alert(const char *fmt, ...);
 
 void                EDisplayMemUse(void);
 
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/eesh/comms.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- comms.c     28 Feb 2004 15:13:57 -0000      1.9
+++ comms.c     21 Mar 2004 01:37:31 -0000      1.10
@@ -84,7 +84,7 @@
 }
 
 void
-CommsSend(Client * c, char *s)
+CommsSend(Client * c, const char *s)
 {
    char                ss[21];
    int                 i, j, k, len;
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/eesh/lists.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- lists.c     28 Feb 2004 15:13:57 -0000      1.7
+++ lists.c     21 Mar 2004 01:37:31 -0000      1.8
@@ -25,7 +25,7 @@
 #include "E.h"
 
 void               *
-FindItem(char *name, int id, int find_by, int type)
+FindItem(const char *name, int id, int find_by, int type)
 {
    List               *ptr;
 
@@ -72,7 +72,7 @@
 }
 
 void
-AddItem(void *item, char *name, int id, int type)
+AddItem(void *item, const char *name, int id, int type)
 {
    List               *ptr;
 
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/eesh/main.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- main.c      20 Mar 2004 15:36:32 -0000      1.17
+++ main.c      21 Mar 2004 01:37:31 -0000      1.18
@@ -182,7 +182,7 @@
 }
 
 void
-Alert(char *fmt, ...)
+Alert(const char *fmt, ...)
 {
    va_list             ap;
 




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to