summaryrefslogtreecommitdiff
path: root/nick.c
diff options
context:
space:
mode:
Diffstat (limited to 'nick.c')
-rw-r--r--nick.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nick.c b/nick.c
index 17335d0..486f4fb 100644
--- a/nick.c
+++ b/nick.c
@@ -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);