summaryrefslogtreecommitdiff
path: root/src/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memory.c')
-rw-r--r--src/memory.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/memory.c b/src/memory.c
index 6c1d8dda7..c602a1827 100644
--- a/src/memory.c
+++ b/src/memory.c
@@ -37,15 +37,11 @@ void *smalloc(long size)
}
buf = malloc(size);
if (!buf)
-#if !defined(USE_THREADS) || !defined(LINUX20)
#ifndef _WIN32
raise(SIGUSR1);
#else
abort();
#endif
-#else
- abort();
-#endif
return buf;
}
@@ -66,15 +62,11 @@ void *scalloc(long elsize, long els)
}
buf = calloc(elsize, els);
if (!buf)
-#if !defined(USE_THREADS) || !defined(LINUX20)
#ifndef _WIN32
raise(SIGUSR1);
#else
abort();
#endif
-#else
- abort();
-#endif
return buf;
}
@@ -95,15 +87,11 @@ void *srealloc(void *oldptr, long newsize)
}
buf = realloc(oldptr, newsize);
if (!buf)
-#if !defined(USE_THREADS) || !defined(LINUX20)
#ifndef _WIN32
raise(SIGUSR1);
#else
abort();
#endif
-#else
- abort();
-#endif
return buf;
}
@@ -127,15 +115,11 @@ char *sstrdup(const char *src)
ret = strdup(src);
#endif
if (!ret)
-#if !defined(USE_THREADS) || !defined(LINUX20)
#ifndef _WIN32
raise(SIGUSR1);
#else
abort();
#endif
-#else
- abort();
-#endif
} else {
alog("sstrdup() called with NULL-arg");
if (debug)