mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-02 15:56:02 +00:00
Minor config codebase clean-ups for consistency
* Improve readability of conditional operators * Remove unnecessary trailing semi-colon in #define * Use NULL-constant instead of zero-value
This commit is contained in:
parent
243ef8ae0b
commit
c8e090a5e1
@ -37,7 +37,7 @@
|
||||
|
||||
#define write_config_string(fd, key, value) fprintf(fd, "%s = %s\n", key, value)
|
||||
#define write_config_int(fd, key, value) fprintf(fd, "%s = %d\n", key, value)
|
||||
#define write_config_bool(fd, key, value) fprintf(fd, "%s = %s\n", key, value?"true":"false");
|
||||
#define write_config_bool(fd, key, value) fprintf(fd, "%s = %s\n", key, value ? "true":"false")
|
||||
|
||||
bool inputAdded = false;
|
||||
|
||||
@ -56,7 +56,7 @@ static struct option long_options[] = {
|
||||
{"audio", required_argument, NULL, 'm'},
|
||||
{"localaudio", no_argument, NULL, 'n'},
|
||||
{"config", required_argument, NULL, 'o'},
|
||||
{"platform", required_argument, 0, 'p'},
|
||||
{"platform", required_argument, NULL, 'p'},
|
||||
{"save", required_argument, NULL, 'q'},
|
||||
{"keydir", required_argument, NULL, 'r'},
|
||||
{"remote", no_argument, NULL, 's'},
|
||||
|
Loading…
x
Reference in New Issue
Block a user