summaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/common.c b/src/common.c
index edfe065..32396f5 100644
--- a/src/common.c
+++ b/src/common.c
@@ -57,23 +57,6 @@ extern void wgmem_error(const char *fmt, ...)
va_end(ap);
}
-extern void *wg_malloc(size_t size)
-{
- void *result;
- if (!size)
- {
- wgmem_error("Error mallocing 0 bytes.\n");
- }
-
- result = malloc(size);
- if (!result)
- {
- wgmem_error("Error while mallocing %u bytes.\n", size);
- }
-
- return result;
-}
-
extern void *wg_calloc(size_t nmemb, size_t size)
{
void *result;
@@ -122,25 +105,6 @@ extern char *wg_strdup(const char *s)
return (result);
}
-extern void *wg_realloc(void *ptr, size_t size)
-{
- void *result;
-
- if (!size)
- {
- wgmem_error("Error reallocing 0 bytes.\n");
- }
-
- result = realloc(ptr, size);
-
- if (!result)
- {
- wgmem_error("Error while reallocing %u bytes.\n", size);
- }
-
- return (result);
-}
-
extern char *wg_getline(char *line, int size, FILE * fp)
{
char *p;