|
|
@@ -296,17 +296,6 @@ xmalloc(int size)
|
|
|
fatal("malloc(%d) failed", size);
|
|
|
}
|
|
|
|
|
|
-static char *
|
|
|
-xstrdup(const char *str)
|
|
|
-{
|
|
|
- char *new_str;
|
|
|
-
|
|
|
- new_str = strdup(str);
|
|
|
- if (new_str)
|
|
|
- return new_str;
|
|
|
- fatal("strdup(%s) failed", str);
|
|
|
-}
|
|
|
-
|
|
|
static char *
|
|
|
xstrndup(const char *str, size_t n)
|
|
|
{
|