xstrdup() not called anywhere in source. Removed.
This commit is contained in:
parent
79ffdb36f0
commit
3c8530663d
2 changed files with 0 additions and 11 deletions
10
misc.c
10
misc.c
|
@ -21,16 +21,6 @@ void* xmalloc(size_t size)
|
|||
return (ptr);
|
||||
}
|
||||
|
||||
char* xstrdup(const char* s)
|
||||
{
|
||||
char* ptr = strdup(s);
|
||||
if (ptr == NULL) {
|
||||
fprintf(stderr, "Out of memory!\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
return (ptr);
|
||||
}
|
||||
|
||||
void packed_to_token(long packed, char token[6])
|
||||
{
|
||||
// Unpack and map back to ASCII.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue