]> git.draconx.ca Git - gob-dx.git/blobdiff - src/util.c
Release 1.0.5
[gob-dx.git] / src / util.c
index 37abe55cfe3b9243ef61449f435503d3fa27f158..acc112e0757ab42424ea10dd02612795128ff6ed 100644 (file)
@@ -72,7 +72,7 @@ error_printf(int type, int line, const char *error, ...)
 }
 
 char *
-remove_sep(char *base)
+remove_sep(const char *base)
 {
        char *p;
        char *s = g_strdup(base);
@@ -277,12 +277,12 @@ setup_special_array(Class *c, gboolean *special_array)
 }
 
 /* get the id without the first underscore, but only if we're removing them */
-char *
-get_real_id(char *id)
+const char *
+get_real_id(const char *id)
 {
-       if(!no_kill_underscores &&
-          id[0] == '_' &&
-          id[1] != '\0')
+       if( ! no_kill_underscores &&
+           id[0] == '_' &&
+           id[1] != '\0')
                return &id[1];
        else
                return id;