--- a/project_files/frontlib/net/netconn_callbacks.c Wed Jun 27 22:52:19 2012 +0200
+++ b/project_files/frontlib/net/netconn_callbacks.c Thu Jul 05 00:33:24 2012 +0200
@@ -102,9 +102,7 @@
*/
#define GENERATE_CB_SETTER(cbName, cbParameterTypes, defaultCb) \
void flib_netconn_##cbName(flib_netconn *conn, void (*callback)cbParameterTypes, void *context) { \
- if(!conn) { \
- flib_log_e("null parameter in flib_netconn_%s", #cbName); \
- } else { \
+ if(!log_badargs_if(conn==NULL)) { \
conn->cbName##Cb = callback ? callback : &defaultCb; \
conn->cbName##Ctx = callback ? context : conn; \
} \