diff options
| author | 2024-09-14 21:50:19 +0200 | |
|---|---|---|
| committer | 2024-09-14 21:50:19 +0200 | |
| commit | e9a0dce170f156846d0e56c7fe9cc1e828a34b44 (patch) | |
| tree | 5a5f95758a9b3bb6040ca828e86873af2297592a | |
| parent | 10d9eae13bb2408982eea60f1b2eb529f6c74647 (diff) | |
| download | usbmuxd-e9a0dce170f156846d0e56c7fe9cc1e828a34b44.tar.gz usbmuxd-e9a0dce170f156846d0e56c7fe9cc1e828a34b44.tar.bz2 | |
Use more reliabe macros to print --version output
PACKAGE_STRING, in some cases, might not include the version.
Use PACKAGE_NAME PACKAGE_VERSION instead.
Thanks to @httpstorm to point this out!
| -rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -584,7 +584,7 @@ static void parse_opts(int argc, char **argv) | |||
| 584 | ++verbose; | 584 | ++verbose; |
| 585 | break; | 585 | break; |
| 586 | case 'V': | 586 | case 'V': |
| 587 | printf("%s\n", PACKAGE_STRING); | 587 | printf("%s %s\n", PACKAGE_NAME, PACKAGE_VERSION); |
| 588 | exit(0); | 588 | exit(0); |
| 589 | case 'U': | 589 | case 'U': |
| 590 | drop_privileges = 1; | 590 | drop_privileges = 1; |
