~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logging: Use lg_exitstatus
[secnet]
/
ipaddr.c
diff --git
a/ipaddr.c
b/ipaddr.c
index
6d0b02a
..
09eb80d
100644
(file)
--- a/
ipaddr.c
+++ b/
ipaddr.c
@@
-358,7
+358,7
@@
string_t subnet_to_string(struct subnet sn)
uint8_t a,b,c,d;
string_t s;
uint8_t a,b,c,d;
string_t s;
- s=
safe_malloc(19,"subnet_to_string"
);
+ s=
ipaddr_getbuf(
);
a=addr>>24;
b=addr>>16;
c=addr>>8;
a=addr>>24;
b=addr>>16;
c=addr>>8;
@@
-418,7
+418,7
@@
static struct subnet string_item_to_subnet(item_t *i, cstring_t desc,
return s;
}
return s;
}
-uint32_t string_item_to_ipaddr(item_t *i, cstring_t desc)
+uint32_t string_item_to_ipaddr(
const
item_t *i, cstring_t desc)
{
uint32_t a, b, c, d;
int match;
{
uint32_t a, b, c, d;
int match;