[Spice-devel] [PATCH] reds: constification

Frediano Ziglio fziglio at redhat.com
Thu Feb 4 16:03:10 UTC 2016


Make version_string a constant.
Also there is no need to have a pointer but declare the buffer as static

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

diff --git a/server/reds.c b/server/reds.c
index edbdaad..4225847 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3299,7 +3299,7 @@ static void reds_init_vd_agent_resources(RedsState *reds)
     }
 }
 
-const char *version_string = VERSION;
+static const char version_string[] = VERSION;
 
 static int do_spice_init(RedsState *reds, SpiceCoreInterface *core_interface)
 {
-- 
2.5.0



More information about the Spice-devel mailing list