[Spice-devel] [PATCH] reds: remove unneeded variable

Frediano Ziglio fziglio at redhat.com
Wed Feb 17 13:26:21 UTC 2016


Remove version_string variable.
Was never changed and used in a single place.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/reds.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/server/reds.c b/server/reds.c
index 99d7377..5fb5825 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3339,11 +3339,9 @@ static void reds_init_vd_agent_resources(RedsState *reds)
     }
 }
 
-const char *version_string = VERSION;
-
 static int do_spice_init(RedsState *reds, SpiceCoreInterface *core_interface)
 {
-    spice_info("starting %s", version_string);
+    spice_info("starting %s", VERSION);
 
     if (core_interface->base.major_version != SPICE_INTERFACE_CORE_MAJOR) {
         spice_warning("bad core interface version");
-- 
2.5.0



More information about the Spice-devel mailing list