summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f24183)
raw | patch | inline | side by side (parent: 4f24183)
author | Florian Forster <octo@huhu.verplant.org> | |
Fri, 20 Jun 2008 12:47:16 +0000 (14:47 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Fri, 20 Jun 2008 12:47:16 +0000 (14:47 +0200) |
src/common.c | patch | blob | history |
diff --git a/src/common.c b/src/common.c
index 56fa696279170c533b54438dc34e187bf18434d9..82b4aaae87745b0e6afb5ca4e1004d9c2de8647a 100644 (file)
--- a/src/common.c
+++ b/src/common.c
if((r = strdup (s)) == NULL)
{
- DEBUG ("Not enough memory.");
- exit(3);
+ ERROR ("Not enough memory.");
+ exit (3);
}
return (r);
-}
+} /* char *sstrdup */
/* Even though Posix requires "strerror_r" to return an "int",
* some systems (e.g. the GNU libc) return a "char *" _and_
if ((r = malloc (size)) == NULL)
{
- DEBUG("Not enough memory.");
- exit(3);
+ ERROR ("Not enough memory.");
+ exit (3);
}
- return r;
-}
+ return (r);
+} /* void *smalloc */
#if 0
void sfree (void **ptr)