diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2025-03-14 20:15:11 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2025-03-14 20:15:11 +0000 |
| commit | eb9357709bfd521a87f5fc4232bf37ce360a0317 (patch) | |
| tree | 0ff80196c91c85b06d9cd8272ed708363f7da51e /client.c | |
| parent | meson: require wayland-protocols >= 1.41 (diff) | |
main/client: simplify code for printing --version string
Diffstat (limited to 'client.c')
| -rw-r--r-- | client.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -22,7 +22,6 @@ #include "foot-features.h" #include "macros.h" #include "util.h" -#include "version.h" #include "xmalloc.h" extern char **environ; @@ -62,20 +61,6 @@ sendall(int sock, const void *_buf, size_t len) return len; } -static const char * -version_and_features(void) -{ - static char buf[256]; - snprintf(buf, sizeof(buf), - "version: %s %cpgo %cime %cgraphemes %cassertions", - FOOT_VERSION, - feature_pgo() ? '+' : '-', - feature_ime() ? '+' : '-', - feature_graphemes() ? '+' : '-', - feature_assertions() ? '+' : '-'); - return buf; -} - static void print_usage(const char *prog_name) { @@ -328,7 +313,7 @@ main(int argc, char *const *argv) break; case 'v': - printf("footclient %s\n", version_and_features()); + print_version_and_features("footclient "); ret = EXIT_SUCCESS; goto err; |
