core: Make ot_transfer_out_value() take a & for the second argument

As Ray Strode argued, it's confusing to have something that looks like
a function be magical.  And OT_TRANSFER_OUT_VALUE is uglier.
This commit is contained in:
Colin Walters committed 2011-12-08 17:31:45 -05:00
1 parent 35fa68a74c
commit d6ceb91c35
7 files changed
+47 -47

No files matched your search

+2 -2
View File
@@ -35,8 +35,8 @@
#define ot_transfer_out_value(outp, srcp) G_STMT_START { \
if (outp) \
{ \
*outp = srcp; \
srcp = NULL; \
*outp = *srcp; \
*(srcp) = NULL; \
} \
} G_STMT_END;