From 8063daef5251da61236a68e9f622fa008b02a52c Mon Sep 17 00:00:00 2001 From: stormshadow <190884359+st0rm-shad0w@users.noreply.github.com> Date: Wed, 22 Apr 2026 00:16:52 +0530 Subject: [PATCH] labmsg: use LABWC_VERSION instead of hardcoded version string --- clients/labmsg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clients/labmsg.c b/clients/labmsg.c index 3392007b..9b87b71d 100644 --- a/clients/labmsg.c +++ b/clients/labmsg.c @@ -35,8 +35,6 @@ enum ipc_msg_type { IPC_GET_SEATS = 101, }; -static const char *version_str = "labmsg 0.1"; - static const struct option long_options[] = {{"help", no_argument, NULL, 'h'}, {"monitor", no_argument, NULL, 'm'}, {"pretty", no_argument, NULL, 'p'}, {"quiet", no_argument, NULL, 'q'}, {"raw", no_argument, NULL, 'r'}, @@ -283,7 +281,7 @@ main(int argc, char *argv[]) type_str = optarg; break; case 'v': - printf("%s\n", version_str); + printf("labmsg " LABWC_VERSION "\n"); return 0; default: fprintf(stderr, "%s", usage_str);