From: Stephen D. <sd...@us...> - 2005-07-30 04:24:44
|
Update of /cvsroot/naviserver/naviserver/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6355/include Modified Files: nsthread.h Log Message: * include/nsthread.h: * nsthread/memory.c: Ensure callers of ns_realloc check the rerturn value. Use ckalloc etc. macros consistently for debugging. Index: nsthread.h =================================================================== RCS file: /cvsroot/naviserver/naviserver/include/nsthread.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** nsthread.h 30 Jul 2005 04:06:01 -0000 1.8 --- nsthread.h 30 Jul 2005 04:24:34 -0000 1.9 *************** *** 201,205 **** NS_EXTERN void *ns_calloc(size_t num, size_t size) NS_GNUC_MALLOC; NS_EXTERN void ns_free(void *buf); ! NS_EXTERN void *ns_realloc(void *buf, size_t size); NS_EXTERN char *ns_strdup(const char *string) NS_GNUC_MALLOC; NS_EXTERN char *ns_strcopy(const char *string) NS_GNUC_MALLOC; --- 201,205 ---- NS_EXTERN void *ns_calloc(size_t num, size_t size) NS_GNUC_MALLOC; NS_EXTERN void ns_free(void *buf); ! NS_EXTERN void *ns_realloc(void *buf, size_t size) NS_GNUC_WARN_UNUSED_RESULT; NS_EXTERN char *ns_strdup(const char *string) NS_GNUC_MALLOC; NS_EXTERN char *ns_strcopy(const char *string) NS_GNUC_MALLOC; |