summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2016-06-22 23:53:20 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2016-06-22 23:57:33 -0700
commit53f09a342e6904aef2bfd4bb2cdf34e484e5a3bd (patch)
treed5cff0136175cd4c56c0033477412caabcb08dca /src/options.c
parentad47ae314760b284fe420ab577ceebbd68441bd5 (diff)
Store result of getopt_long in an int
This fixes issues on ARM, where char is unsigned.
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c
index 3150ead..9e66122 100644
--- a/src/options.c
+++ b/src/options.c
@@ -48,7 +48,7 @@ void options_set_defaults(options_t *options) {
void options_parse(options_t *options, int argc, char *argv[]) {
options_set_defaults(options);
- char c;
+ int c;
while ((c = getopt_long(argc, argv, "vhse:q:l:t:p:", longopts, NULL)) != -1) {
switch (c) {
case 'v':