aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-04-01 12:10:24 +0000
committerOlivier Blin <oblin@mandriva.org>2005-04-01 12:10:24 +0000
commite1d52894745092f0d49eb88809afadfdb60ae3f9 (patch)
tree115abc4666e4f4c622066241a0ec695c8e56a43d
parentfef57d1ecc7c44f657ec43be1b2bb9dbbb86cefb (diff)
downloadbootsplash-e1d52894745092f0d49eb88809afadfdb60ae3f9.tar
bootsplash-e1d52894745092f0d49eb88809afadfdb60ae3f9.tar.gz
bootsplash-e1d52894745092f0d49eb88809afadfdb60ae3f9.tar.bz2
bootsplash-e1d52894745092f0d49eb88809afadfdb60ae3f9.tar.xz
bootsplash-e1d52894745092f0d49eb88809afadfdb60ae3f9.zip
fix typo and remove unused variable
-rw-r--r--fb/fbmenu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fb/fbmenu.c b/fb/fbmenu.c
index 1e75252..2deda5f 100644
--- a/fb/fbmenu.c
+++ b/fb/fbmenu.c
@@ -12,7 +12,6 @@
#include <sys/ioctl.h>
#include <linux/fb.h>
-int fd;
static int fb;
struct fb_var_screeninfo fb_var;
static GtkWidget *window = NULL;
@@ -147,7 +146,7 @@ int main(int argc, char **argv) {
deflt = argv[3];
fb = open("/dev/fb0",O_RDWR);
- if (-1 == fd && getenv("DISPLAY") == NULL) {
+ if (-1 == fb && getenv("DISPLAY") == NULL) {
signal(SIGALRM, return_default);
alarm(atoi(argv[1]));
do {