diff options
Diffstat (limited to 'nick.c')
-rw-r--r-- | nick.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -11,7 +11,7 @@ void nick_init() { nicks = NULL; } -struct nick_t *nick_add(char *name) { +struct nick_t *nick_add(const char *name) { struct nick_t *nick = malloc(sizeof(struct nick_t)); if(!nick) { char *error = strerror(errno); @@ -33,7 +33,7 @@ struct nick_t *nick_add(char *name) { return nick; } -int nick_regex_add(struct nick_t *nick, char *re_s) { +int nick_regex_add(struct nick_t *nick, const char *re_s) { struct nick_regex_t *nre = malloc(sizeof(struct nick_regex_t)); if(!nre) { char *error = strerror(errno); |