aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {