chiark
/
gitweb
/
~ian
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
string_item_to_iaddr: Actually set port if !CONFIG_IPV6
[secnet.git]
/
secnet.c
diff --git
a/secnet.c
b/secnet.c
index 30db8e1878a66065cf97ba6e7d1c0aa0d0d379f2..756ab62b78aa27f3d7734ec671ef4cb11da0c697 100644
(file)
--- a/
secnet.c
+++ b/
secnet.c
@@
-235,7
+235,7
@@
struct poll_interest *register_for_poll(void *st, beforepoll_fn *before,
{
struct poll_interest *i;
{
struct poll_interest *i;
-
i=safe_malloc(sizeof(*i),"register_for_poll"
);
+
NEW(i
);
i->before=before;
i->after=after;
i->state=st;
i->before=before;
i->after=after;
i->state=st;
@@
-331,7
+331,7
@@
static void run(void)
if (shortfall) {
allocdfds *= 2;
allocdfds += shortfall;
if (shortfall) {
allocdfds *= 2;
allocdfds += shortfall;
-
fds=safe_realloc_ary(fds,sizeof(*fds),allocdfds, "run"
);
+
REALLOC_ARY(fds,allocdfds
);
}
shortfall=0;
idx=0;
}
shortfall=0;
idx=0;