commit | eba8ed71f08f334bc94ac8eeedcd998fcdd05897 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Fri Mar 09 14:36:42 2001 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Fri Mar 09 14:36:42 2001 +0000 |
tree | c7a2f4adfb3418ff5d970a4f01fe87df38e04dc9 | |
parent | 9ba5bce06f71e610db752489b4f97e2af56c2577 [diff] [blame] |
Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanup warnings with glibc 2.2 and use always use xfopen -Erik
diff --git a/fbset.c b/fbset.c index 72284a6..be1e3c3 100644 --- a/fbset.c +++ b/fbset.c
@@ -198,8 +198,7 @@ char buf[256]; char *p = buf; - if ((f = fopen(fn, "r")) == NULL) - perror_msg_and_die("readmode(fopen)"); + f = xfopen(fn, "r"); while (!feof(f)) { fgets(buf, sizeof(buf), f); if ((p = strstr(buf, "mode ")) || (p = strstr(buf, "mode\t"))) {