projects
/
project
/
mdnsd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cache: constify cache_record fields
[project/mdnsd.git]
/
cache.h
diff --git
a/cache.h
b/cache.h
index
134a91e
..
4e8a421
100644
(file)
--- a/
cache.h
+++ b/
cache.h
@@
-29,14
+29,14
@@
struct cache_entry {
};
struct cache_record {
};
struct cache_record {
-
struct avl_node avl;
+ struct avl_node avl;
- char *record;
+ c
onst c
har *record;
uint16_t type;
uint32_t ttl;
int port;
uint16_t type;
uint32_t ttl;
int port;
- char *txt;
- uint8_t *rdata;
+ c
onst c
har *txt;
+
const
uint8_t *rdata;
uint16_t rdlength;
time_t time;
};
uint16_t rdlength;
time_t time;
};