From: Rafał Miłecki Date: Tue, 14 Feb 2017 11:59:10 +0000 (+0100) Subject: Make sdudp string const X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0450f9bb07a6a8684a761b9005ec06b4ef959b4c;p=project%2Fmdnsd.git Make sdudp string const It musn't be changed. Signed-off-by: Rafał Miłecki --- diff --git a/service.c b/service.c index 15f05f9..588daf3 100644 --- a/service.c +++ b/service.c @@ -65,7 +65,7 @@ service_update(struct vlist_tree *tree, struct vlist_node *node_new, static struct blob_buf b; static VLIST_TREE(services, avl_strcmp, service_update, false, false); -char *sdudp = "_services._dns-sd._udp.local"; +const char *sdudp = "_services._dns-sd._udp.local"; static int service_init_announce; static const char * diff --git a/service.h b/service.h index 8bc9ba9..b46b521 100644 --- a/service.h +++ b/service.h @@ -14,7 +14,7 @@ #ifndef _SERVICE_H__ #define _SERVICE_H__ -extern char *sdudp; +extern const char *sdudp; extern void service_init(int announce); extern void service_cleanup(void); extern void service_reply(struct interface *iface, const char *match, int ttl);