mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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
This commit is contained in:
parent
4be52f16bd
commit
27e997a032
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ int main(int argc, char *argv[])
|
||||||
{"name", 1, NULL, 'n'},
|
{"name", 1, NULL, 'n'},
|
||||||
{NULL, 0, NULL, 0}
|
{NULL, 0, NULL, 0}
|
||||||
};
|
};
|
||||||
char c;
|
int c;
|
||||||
|
|
||||||
pw_init(&argc, &argv);
|
pw_init(&argc, &argv);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue