aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-15 16:01:17 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-15 16:01:17 +0200
commitf06bbdbe87d8045e38b59bfdba3368f7b7e4dccc (patch)
treed1c75fe5139d048404cb82ce7f94f7c52fd9f466
parent4749a4e657f98262b8b4beea08a2deffc4006e2d (diff)
downloadnetlink-notify-f06bbdbe87d8045e38b59bfdba3368f7b7e4dccc.tar.gz
netlink-notify-f06bbdbe87d8045e38b59bfdba3368f7b7e4dccc.tar.zst
data types
-rw-r--r--netlink-notify.c6
1 files 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));