main: Correct getopt_long() usage on ARM
main: Correct getopt_long() usage on ARM

getopt_long() returns an int, which is signed.  The existing code casts
this int to a char, which on ARM is unsigned.

Due to how casting works, the resulting value is invalid, and will always
produce an error on ARM.  This prevents seafile-applet from running at all,
as it silently quits before any command line arguments are parsed.

The solution is to change 'char c' to 'int c', which allows for negative
values, and lets getopt_long() work as intended.

Signed-off-by: Sean Cross <dd28e116ed3e781f3ae781acae9fb18383f35c2f@kosagi.com>

lucius-feng/seafile-client,cloudcopy/client,wgaalves/seafile-client,daodaoliang/seafile-client,wgaalves/seafile-client,daodaoliang/seafile-client,losingle/seafile-client,losingle/seafile-client,daodaoliang/seafile-client,cloudcopy/client,daodaoliang/seafile-client,losingle/seafile-client,haiwen/seafile-client,lucius-feng/seafile-client,lucius-feng/seafile-client,cloudcopy/client,haiwen/seafile-client,wgaalves/seafile-client,cloudcopy/client,haiwen/seafile-client,lucius-feng/seafile-client,haiwen/seafile-client,wgaalves/seafile-client,losingle/seafile-client