chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NEW etc.: Use NEW in all obvious places
[secnet.git]
/
comm-common.c
diff --git
a/comm-common.c
b/comm-common.c
index d880055cbe42a1f4d253cc4ca0d58c76231e682c..7528e924ced75647ad3c6f537b43486fe54d1bd6 100644
(file)
--- a/
comm-common.c
+++ b/
comm-common.c
@@
-7,7
+7,7
@@
void comm_request_notify(void *commst, void *nst, comm_notify_fn *fn)
struct commcommon *st=commst;
struct comm_notify_entry *n;
-
n=safe_malloc(sizeof(*n),"comm_request_notify"
);
+
NEW(n
);
n->fn=fn;
n->state=nst;
LIST_INSERT_HEAD(&st->notify, n, entry);