From d9a8000d2e08085132a5832db0480323c509ad22 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 4 Jun 2014 00:15:44 +0200 Subject: [PATCH] service: make the service txt field const uint8_t to reflect its use more accurately Signed-off-by: Felix Fietkau --- service.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; -- 2.11.0