mirror of
https://github.com/labwc/labwc.git
synced 2026-06-13 14:33:18 -04:00
labmsg: use LABWC_VERSION instead of hardcoded version string
This commit is contained in:
parent
5e09725c01
commit
8063daef52
1 changed files with 1 additions and 3 deletions
|
|
@ -35,8 +35,6 @@ enum ipc_msg_type {
|
||||||
IPC_GET_SEATS = 101,
|
IPC_GET_SEATS = 101,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *version_str = "labmsg 0.1";
|
|
||||||
|
|
||||||
static const struct option long_options[] = {{"help", no_argument, NULL, 'h'},
|
static const struct option long_options[] = {{"help", no_argument, NULL, 'h'},
|
||||||
{"monitor", no_argument, NULL, 'm'}, {"pretty", no_argument, NULL, 'p'},
|
{"monitor", no_argument, NULL, 'm'}, {"pretty", no_argument, NULL, 'p'},
|
||||||
{"quiet", no_argument, NULL, 'q'}, {"raw", no_argument, NULL, 'r'},
|
{"quiet", no_argument, NULL, 'q'}, {"raw", no_argument, NULL, 'r'},
|
||||||
|
|
@ -283,7 +281,7 @@ main(int argc, char *argv[])
|
||||||
type_str = optarg;
|
type_str = optarg;
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
printf("%s\n", version_str);
|
printf("labmsg " LABWC_VERSION "\n");
|
||||||
return 0;
|
return 0;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "%s", usage_str);
|
fprintf(stderr, "%s", usage_str);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue