daemon: getopt returns int, declare it as such to avoid comparison issues
On some toolchains/architectures, a char with -1 value is not equal to the integer -1, resulting in this code to think that it got an unrecognized command line option
On some toolchains/architectures, a char with -1 value is not equal to the integer -1, resulting in this code to think that it got an unrecognized command line option