diff options
author | Eric Andersen | 2001-03-09 14:36:42 +0000 |
---|---|---|
committer | Eric Andersen | 2001-03-09 14:36:42 +0000 |
commit | eba8ed71f08f334bc94ac8eeedcd998fcdd05897 (patch) | |
tree | c7a2f4adfb3418ff5d970a4f01fe87df38e04dc9 /util-linux/fbset.c | |
parent | 9ba5bce06f71e610db752489b4f97e2af56c2577 (diff) | |
download | busybox-eba8ed71f08f334bc94ac8eeedcd998fcdd05897.zip busybox-eba8ed71f08f334bc94ac8eeedcd998fcdd05897.tar.gz |
Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanup
warnings with glibc 2.2 and use always use xfopen
-Erik
Diffstat (limited to 'util-linux/fbset.c')
-rw-r--r-- | util-linux/fbset.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c index 72284a6..be1e3c3 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c @@ -198,8 +198,7 @@ static int readmode(struct fb_var_screeninfo *base, const char *fn, 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"))) { |