From: macrule <562520+macrule@users.noreply.github.com> Date: Wed, 29 Nov 2017 17:18:53 +0000 (+0100) Subject: Fixed const correctness in bonjour code. X-Git-Tag: v4.2.5~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e1b1e08755a28727671b8b7d79f46c102f19e48;p=thirdparty%2Ftvheadend.git Fixed const correctness in bonjour code. --- diff --git a/src/bonjour.c b/src/bonjour.c index 5e4eb0f50..3f7b6d026 100644 --- a/src/bonjour.c +++ b/src/bonjour.c @@ -26,8 +26,8 @@ #include typedef struct { - char *key; - char *value; + const char *key; + const char *value; } txt_rec_t; pthread_t bonjour_tid; @@ -43,7 +43,7 @@ bonjour_callback(CFNetServiceRef theService, CFStreamError* error, void* info) } static void -bonjour_start_service(CFNetServiceRef *svc, char *service_type, +bonjour_start_service(CFNetServiceRef *svc, const char *service_type, uint32_t port, txt_rec_t *txt) { CFStringRef str;