From f06bbdbe87d8045e38b59bfdba3368f7b7e4dccc Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 15 Jul 2013 16:01:17 +0200 Subject: data types --- netlink-notify.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netlink-notify.c b/netlink-notify.c index f22c5b6..6d47bb5 100644 --- a/netlink-notify.c +++ b/netlink-notify.c @@ -133,7 +133,7 @@ int match_address(struct addresses_seen *next, char *address, unsigned char pref } /*** newstr_link ***/ -char * newstr_link(char *text, char *interface, unsigned int flags) { +char * newstr_link(const char *text, char *interface, unsigned int flags) { char *notifystr; notifystr = malloc(strlen(text) + strlen(interface) + 4); @@ -143,7 +143,7 @@ char * newstr_link(char *text, char *interface, unsigned int flags) { } /*** newstr_addr ***/ -char * newstr_addr(char *text, char *interface, unsigned char family, char *ipaddr, unsigned char prefix) { +char * newstr_addr(const char *text, char *interface, unsigned char family, char *ipaddr, unsigned char prefix) { char *notifystr; notifystr = malloc(strlen(text) + strlen(interface) + strlen(ipaddr)); @@ -153,7 +153,7 @@ char * newstr_addr(char *text, char *interface, unsigned char family, char *ipad } /*** newstr_away ***/ -char * newstr_away(char *text, char *interface) { +char * newstr_away(const char *text, char *interface) { char *notifystr; notifystr = malloc(strlen(text) + strlen(interface)); -- cgit v1.2.3-70-g09d2