X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=comm-common.h;h=b1cd9c0e123a36f7deb90c1f38e2761e76ceb7b6;hp=6dad9ef6c52e7010e9cf669959ad538d300cfd8e;hb=656df7e2c9b688150ebe991d79a64ac096bb5f8e;hpb=c72d679d2344a22f55889da6932754986fc0a7b9 diff --git a/comm-common.h b/comm-common.h index 6dad9ef..b1cd9c0 100644 --- a/comm-common.h +++ b/comm-common.h @@ -34,7 +34,7 @@ bool_t comm_notify(struct comm_notify_list *notify, struct buffer_if *buf, void comm_apply(struct commcommon *cc, void *st); #define COMM_APPLY(st,cc,prefix,desc,loc) \ - (st)=safe_malloc(sizeof(*(st)), desc "_apply"); \ + NEW(st); \ (cc)->loc=loc; \ (cc)->cl.description=desc; \ (cc)->ops.sendmsg=prefix##sendmsg; \