aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fbset.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/fbset.c')
-rw-r--r--util-linux/fbset.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 09e96b763..b75ec1921 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -164,6 +164,7 @@ static const struct cmdoptions_t {
164 const unsigned char code; 164 const unsigned char code;
165} g_cmdoptions[] = { 165} g_cmdoptions[] = {
166 /*"12345678" + NUL */ 166 /*"12345678" + NUL */
167//TODO: convert to index_in_strings()
167 { "fb" , 1, CMD_FB }, 168 { "fb" , 1, CMD_FB },
168 { "db" , 1, CMD_DB }, 169 { "db" , 1, CMD_DB },
169 { "a" , 0, CMD_ALL }, 170 { "a" , 0, CMD_ALL },
@@ -416,7 +417,7 @@ int fbset_main(int argc, char **argv)
416 unsigned options = 0; 417 unsigned options = 0;
417 418
418 const char *fbdev = DEFAULTFBDEV; 419 const char *fbdev = DEFAULTFBDEV;
419 const char *modefile = DEFAULTFBMODE; 420 IF_FEATURE_FBSET_READMODE(const char *modefile = DEFAULTFBMODE;)
420 char *thisarg; 421 char *thisarg;
421 char *mode = mode; /* for compiler */ 422 char *mode = mode; /* for compiler */
422 423
@@ -444,7 +445,7 @@ int fbset_main(int argc, char **argv)
444 fbdev = argv[1]; 445 fbdev = argv[1];
445 break; 446 break;
446 case CMD_DB: 447 case CMD_DB:
447 modefile = argv[1]; 448 IF_FEATURE_FBSET_READMODE(modefile = argv[1];)
448 break; 449 break;
449 case CMD_ALL: 450 case CMD_ALL:
450 options |= OPT_ALL; 451 options |= OPT_ALL;