projects
/
oweals
/
mdnsd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0f1b43
)
service: make the service txt field const uint8_t to reflect its use more accurately
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 3 Jun 2014 22:15:44 +0000
(
00:15
+0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 3 Jun 2014 22:15:44 +0000
(
00:15
+0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
service.c
patch
|
blob
|
history
diff --git
a/service.c
b/service.c
index 763c89979d1463d0cf2979b3750db9e7a359bc98..9d3f0841a9cfca6d3ddd053efbcef19e9214680e 100644
(file)
--- 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;
- c
har
*txt;
+ c
onst 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;