From: Felix Fietkau Date: Tue, 3 Jun 2014 22:15:44 +0000 (+0200) Subject: service: make the service txt field const uint8_t to reflect its use more accurately X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=commitdiff_plain;h=d9a8000d2e08085132a5832db0480323c509ad22 service: make the service txt field const uint8_t to reflect its use more accurately Signed-off-by: Felix Fietkau --- diff --git a/service.c b/service.c index 763c899..9d3f084 100644 --- a/service.c +++ b/service.c @@ -42,13 +42,13 @@ enum { }; struct service { - struct avl_node avl; + struct avl_node avl; time_t t; char *service; char *daemon; - char *txt; + const uint8_t *txt; int txt_len; int port; int active; @@ -259,7 +259,8 @@ service_load(char *path) continue; blob_for_each_attr(cur, b.head, rem) { struct service *s; - char *d_service, *d_txt, *d_daemon; + char *d_service, *d_daemon; + uint8_t *d_txt; int rem2; int txt_len = 0;