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

Pavel Grunt pgrunt at redhat.com
Wed Feb 17 13:46:57 UTC 2016


On Wed, 2016-02-17 at 13:26 +0000, Frediano Ziglio wrote:
> Remove version_string variable.
> Was never changed and used in a single place.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Pavel Grunt <pgrunt 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");


More information about the Spice-devel mailing list