From eba8ed71f08f334bc94ac8eeedcd998fcdd05897 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 9 Mar 2001 14:36:42 +0000 Subject: Patchs from Jeff Garzik to cleanup warnings with glibc 2.2 and use always use xfopen -Erik --- util-linux/fbset.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util-linux/fbset.c') diff --git a/util-linux/fbset.c b/util-linux/fbset.c index 72284a6c5..be1e3c3f1 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"))) { -- cgit v1.2.3