comparison extensions/acl_wl/aw_tree.c @ 1027:0117a7746b21

Fix a number of errors and warnings introduced/highlighted by recent commits
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 15 Apr 2013 15:17:07 +0800
parents 2091bf698fb1
children 1af09cc156d6
comparison
equal deleted inserted replaced
1026:beb375690453 1027:0117a7746b21
126 static struct tree_item * new_ti(char * str, size_t len, int flags, int leaf) 126 static struct tree_item * new_ti(char * str, size_t len, int flags, int leaf)
127 { 127 {
128 struct tree_item * ti; 128 struct tree_item * ti;
129 char * s = NULL; 129 char * s = NULL;
130 130
131 TRACE_ENTRY("%p %d %x", str, len, flags); 131 TRACE_ENTRY("%p %zd %x", str, len, flags);
132 132
133 if (str) { 133 if (str) {
134 CHECK_MALLOC_DO(s = malloc(len + 1), return NULL); 134 CHECK_MALLOC_DO(s = malloc(len + 1), return NULL);
135 memcpy(s, str, len); 135 memcpy(s, str, len);
136 s[len] = '\0'; 136 s[len] = '\0';
"Welcome to our mercurial repository"