daemon: use correct type for getopt_long() return value

Depending on the compiler configuration 'char' may be an unsigned type
which will not work as expected.

Signed-off-by: Matthias Fend <matthias.fend@wolfvision.net>
This commit is contained in:
Matthias Fend 2019-03-25 13:04:12 +01:00 committed by Wim Taymans
parent 181a6a2cea
commit bdc81f6dc0

View file

@ -59,7 +59,7 @@ int main(int argc, char *argv[])
{"name", 1, NULL, 'n'},
{NULL, 0, NULL, 0}
};
char c;
int c;
pw_init(&argc, &argv);