Skip to content
Snippets Groups Projects
Commit e0dee911 authored by Hiltjo Posthuma's avatar Hiltjo Posthuma
Browse files

sync code-style patch from libsl

parent 5e76e7e2
Branches
Tags
No related merge requests found
......@@ -6,18 +6,9 @@
#include "util.h"
void *
ecalloc(size_t nmemb, size_t size)
{
void *p;
if (!(p = calloc(nmemb, size)))
die("calloc:");
return p;
}
void
die(const char *fmt, ...) {
die(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
......@@ -33,3 +24,13 @@ die(const char *fmt, ...) {
exit(1);
}
void *
ecalloc(size_t nmemb, size_t size)
{
void *p;
if (!(p = calloc(nmemb, size)))
die("calloc:");
return p;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment