Mercurial > sci
diff scictl/scictl.c @ 63:67470b67e460
misc: remove unneeded code
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 18 Aug 2022 12:29:28 +0200 |
parents | 8be8188d61a5 |
children | 71cd8447e3a4 |
line wrap: on
line diff
--- a/scictl/scictl.c Thu Aug 18 12:18:12 2022 +0200 +++ b/scictl/scictl.c Thu Aug 18 12:29:28 2022 +0200 @@ -76,8 +76,7 @@ else if (!(fp = fopen(path, "r"))) util_die("abort: %s: %s\n", path, strerror(errno)); - if (!(str = open_memstream(&console, &consolesz))) - util_die("abort: open_memstream: %s\n", strerror(errno)); + str = util_open_memstream(&console, &consolesz); while ((nr = fread(buf, 1, sizeof (buf), fp)) > 0) fwrite(buf, 1, nr, str);