From 8029542b67e81c8ea83a0d71929426ec8439f9af Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 16 Apr 2012 09:42:53 +0200 Subject: [PATCH] Get rid of fio_version.h Signed-off-by: Jens Axboe Conflicts: fio_version.h Signed-off-by: Jens Axboe --- client.c | 4 ++-- fio_version.h | 8 -------- gclient.c | 4 +--- init.c | 2 -- os/windows/install.wxs | 2 +- server.c | 6 +----- server.h | 6 ++---- 7 files changed, 7 insertions(+), 25 deletions(-) delete mode 100644 fio_version.h diff --git a/client.c b/client.c index 5dcc5f54..685472e2 100644 --- a/client.c +++ b/client.c @@ -966,9 +966,9 @@ static void handle_probe(struct fio_client *client, struct fio_net_cmd *cmd) sprintf(bit, "%d-bit", probe->bpp * 8); - log_info("hostname=%s, be=%u, %s, os=%s, arch=%s, fio=%u.%u.%u\n", + log_info("hostname=%s, be=%u, %s, os=%s, arch=%s, fio=%s\n", probe->hostname, probe->bigendian, bit, os, arch, - probe->fio_major, probe->fio_minor, probe->fio_patch); + probe->fio_version); if (!client->name) client->name = strdup((char *) probe->hostname); diff --git a/fio_version.h b/fio_version.h deleted file mode 100644 index 42c0ff78..00000000 --- a/fio_version.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef FIO_VERSION_H -#define FIO_VERSION_H - -#define FIO_MAJOR 2 -#define FIO_MINOR 0 -#define FIO_PATCH 6 - -#endif diff --git a/gclient.c b/gclient.c index 8675f617..78a5c361 100644 --- a/gclient.c +++ b/gclient.c @@ -525,7 +525,6 @@ static void gfio_probe_op(struct fio_client *client, struct fio_net_cmd *cmd) struct gfio_client *gc = client->client_data; struct gui_entry *ge = gc->ge; const char *os, *arch; - char buf[64]; os = fio_get_os_string(probe->os); if (!os) @@ -546,8 +545,7 @@ static void gfio_probe_op(struct fio_client *client, struct fio_net_cmd *cmd) gtk_label_set_text(GTK_LABEL(ge->probe.hostname), (char *) probe->hostname); gtk_label_set_text(GTK_LABEL(ge->probe.os), os); gtk_label_set_text(GTK_LABEL(ge->probe.arch), arch); - sprintf(buf, "%u.%u.%u", probe->fio_major, probe->fio_minor, probe->fio_patch); - gtk_label_set_text(GTK_LABEL(ge->probe.fio_ver), buf); + gtk_label_set_text(GTK_LABEL(ge->probe.fio_ver), (char *) probe->fio_version); gfio_set_state(ge, GE_STATE_CONNECTED); diff --git a/init.c b/init.c index 74226286..4f42a5cc 100644 --- a/init.c +++ b/init.c @@ -23,8 +23,6 @@ #include "lib/getopt.h" -#include "fio_version.h" - const char fio_version_string[] = FIO_VERSION; #define FIO_RANDSEED (0xb1899bedUL) diff --git a/os/windows/install.wxs b/os/windows/install.wxs index d3d683e7..18091bee 100755 --- a/os/windows/install.wxs +++ b/os/windows/install.wxs @@ -10,7 +10,7 @@ + UpgradeCode="{2338A332-5511-43cf-b9BD-5C60496CCFCC}" Version="$(env.FIO_VERSION)">