summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuri Lelli <juri.lelli@gmail.com>2012-12-05 15:18:21 -0800
committerJuri Lelli <juri.lelli@gmail.com>2012-12-05 15:18:21 -0800
commit0b4a6740619d1f9588a7676e67662ffa2cd3631a (patch)
tree4c66d2c3dcb7fb3319a737f572d73e0d5ffdf3c0
parent005afc834ead6734282333ecc489c4950c9fa4f5 (diff)
Fix char type for getopt_long
As stated in http://www.arm.linux.org.uk/docs/faqs/signedchar.php having a char instead of a signed char as getlong_opt switch causes problems for ARM. Change it to be signed.
-rw-r--r--src/rt-app_args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt-app_args.c b/src/rt-app_args.c
index 08abda6..502ba82 100644
--- a/src/rt-app_args.c
+++ b/src/rt-app_args.c
@@ -199,7 +199,7 @@ static void
parse_command_line_options(int argc, char **argv, rtapp_options_t *opts)
{
char tmp[PATH_LENGTH];
- char ch;
+ signed char ch;
int longopt_idx;
int i;