diff options
Diffstat (limited to 'cmd_version.c')
-rw-r--r-- | cmd_version.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd_version.c b/cmd_version.c index a2190ab..d919c60 100644 --- a/cmd_version.c +++ b/cmd_version.c @@ -5,7 +5,12 @@ void *cmd_version(void *data) char *param = (char *)data; char *ret = NULL; + const int buf_size = 128; + char buf[buf_size+1]; + printf("VERSION\n"); - ret = alloc_new_str("v0.0.1\n"); + snprintf(buf, buf_size, "VERSION:0.0.3" " DATE:" VERSION_DATE " COMMIT:" VERSION_COMMIT "\n"); + + ret = alloc_new_str(buf); }
\ No newline at end of file |