MCPcopy Index your code
hub / github.com/F-Stack/f-stack / safe_realloc

Function safe_realloc

tools/ipfw/ipfw2.c:549–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549void *
550safe_realloc(void *ptr, size_t size)
551{
552 void *ret = realloc(ptr, size);
553
554 if (ret == NULL)
555 err(EX_OSERR, "realloc");
556 return ret;
557}
558
559/*
560 * Compare things like interface or table names.

Callers 1

dummynet_listFunction · 0.70

Calls 1

reallocFunction · 0.50

Tested by

no test coverage detected