_err() -> err().

This commit is contained in:
jkh 1997-06-29 00:33:17 +00:00
parent 497ff8e74d
commit 94e195cf1d

View File

@ -51,13 +51,13 @@ sl_init()
{
StringList *sl = malloc(sizeof(StringList));
if (sl == NULL)
_err(1, "stringlist: %m");
err(1, "stringlist: %m");
sl->sl_cur = 0;
sl->sl_max = _SL_CHUNKSIZE;
sl->sl_str = malloc(sl->sl_max * sizeof(char *));
if (sl->sl_str == NULL)
_err(1, "stringlist: %m");
err(1, "stringlist: %m");
return sl;
}
@ -74,7 +74,7 @@ sl_add(sl, name)
sl->sl_max += _SL_CHUNKSIZE;
sl->sl_str = realloc(sl->sl_str, sl->sl_max * sizeof(char *));
if (sl->sl_str == NULL)
_err(1, "stringlist: %m");
err(1, "stringlist: %m");
}
sl->sl_str[sl->sl_cur++] = name;
}