~mdw
/
sgt
/
halibut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revamp of the Halibut error handling mechanism.
[sgt/halibut]
/
malloc.c
diff --git
a/malloc.c
b/malloc.c
index
4389d8a
..
af8bcf4
100644
(file)
--- a/
malloc.c
+++ b/
malloc.c
@@
-47,7
+47,7
@@
void *(smalloc)(LOGPARAMS int size) {
file, line, (long)size));
p = malloc(size);
if (!p)
file, line, (long)size));
p = malloc(size);
if (!p)
- fatal
(err_nomemory
);
+ fatal
err_nomemory(
);
LOGPRINT((" returns %p\n", p));
return p;
}
LOGPRINT((" returns %p\n", p));
return p;
}
@@
-83,7
+83,7
@@
void *(srealloc)(LOGPARAMS void *p, int size) {
LOGPRINT((" returns %p\n", q));
}
if (!q)
LOGPRINT((" returns %p\n", q));
}
if (!q)
- fatal
(err_nomemory
);
+ fatal
err_nomemory(
);
return q;
}
return q;
}