summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2014-11-26 16:30:32 +0100
committerPali Rohár <pali.rohar@gmail.com>2014-11-26 16:30:32 +0100
commit15219cb99ce185571638f8b6732300dd32e225bd (patch)
tree170e5572200a1a015e4c47f09b0d0f6593785049 /src/main.c
parentdb4c7c19512504ee1391728248ae08c966a60b43 (diff)
download0xFFFF-15219cb99ce185571638f8b6732300dd32e225bd.tar.bz2
main: Add missing extern variables for getopt
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 0552593..b224e5c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -36,6 +36,9 @@
#include "device.h"
#include "operations.h"
+extern char *optarg;
+extern int optind, opterr, optopt;
+
static void show_title(void) {
printf("0xFFFF v%s // Open Free Fiasco Firmware Flasher\n", VERSION);
}