Skip to content

Commit c893c81

Browse files
committed
fix chk lib stubs
1 parent 62e965a commit c893c81

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/chkalloc.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ chk_free_ptr(void **p)
1010
*p = 0;
1111
}
1212
}
13+
void *
1314
chk_strdup(char *str)
1415
{
1516
return strdup(str);
1617
}
18+
void *
1719
chk_alloc(void *p)
1820
{
1921
return malloc(p);
2022
}
21-
chk_realloc(int p, int s)
23+
void *
24+
chk_realloc(void *p, int s)
2225
{
2326
return realloc(p, s);
2427
}

0 commit comments

Comments
 (0)