From 0450f9bb07a6a8684a761b9005ec06b4ef959b4c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Tue, 14 Feb 2017 12:59:10 +0100 Subject: [PATCH] Make sdudp string const MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It musn't be changed. Signed-off-by: Rafał Miłecki --- service.c | 2 +- service.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.11.0