X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/853c670e4b839fd435507201f04d16080590a894..c9d96fcfcf9b74099775a3a260eccdfdc31474c7:/src/util.c diff --git a/src/util.c b/src/util.c index 37abe55..acc112e 100644 --- a/src/util.c +++ b/src/util.c @@ -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;