Re: [PATCH spice-streaming-agent v2 2/4] replace tabs with 8 spaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> Signed-off-by: Lukáš Hrázký <lhrazky@xxxxxxxxxx>
> ---
>  src/spice-streaming-agent.cpp | 40 ++++++++++++++++++++--------------------
>  1 file changed, 20 insertions(+), 20 deletions(-)
> 
> diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
> index 53ffbf0..f36921d 100644
> --- a/src/spice-streaming-agent.cpp
> +++ b/src/spice-streaming-agent.cpp
> @@ -96,9 +96,9 @@ static int read_command_from_stdin(void)
>      if (strcmp(cmd, "quit") == 0) {
>          quit = true;
>      } else if (strcmp(cmd, "start") == 0) {
> -	streaming_requested = 1;
> +        streaming_requested = 1;
>      } else if (strcmp(cmd, "stop") == 0) {
> -	streaming_requested = 0;
> +        streaming_requested = 0;
>      } else {
>          syslog(LOG_WARNING, "unknown command %s\n", cmd);
>      }
> @@ -164,7 +164,7 @@ static int read_command(bool blocking)
>          } else {
>              n = read_command_from_stdin();
>          }
> -	break;
> +        break;
>      }
>      return n;
>  }
> @@ -451,27 +451,27 @@ int main(int argc, char* argv[])
>      setlogmask(logmask);
>  
>      while ((opt = getopt_long(argc, argv, "hip:c:l:d", long_options, NULL))
>      != -1) {
> -	switch (opt) {
> +        switch (opt) {
>          case 0:
>              /* Handle long options if needed */
>              break;
> -	case 'i':
> +        case 'i':
>              stdin_ok = true;
>              openlog("spice-streaming-agent", LOG_PERROR|LOG_PID, LOG_USER);
>              break;
> -	case 'p':
> -	    streamport = optarg;
> -	    break;
> -	case 'c': {
> -	    char *p = strchr(optarg, '=');
> -	    if (p == NULL) {
> -		arg_error("wrong 'c' argument %s\n", optarg);
> -		usage(argv[0]);
> -	    }
> +        case 'p':
> +            streamport = optarg;
> +            break;
> +        case 'c': {
> +            char *p = strchr(optarg, '=');
> +            if (p == NULL) {
> +                arg_error("wrong 'c' argument %s\n", optarg);
> +                usage(argv[0]);
> +            }
>              *p++ = '\0';
>              agent.AddOption(optarg, p);
> -	    break;
> -	}
> +            break;
> +        }
>          case 'l':
>              log_filename = optarg;
>              break;
> @@ -479,10 +479,10 @@ int main(int argc, char* argv[])
>              logmask = LOG_UPTO(LOG_DEBUG);
>              setlogmask(logmask);
>              break;
> -	case 'h':
> -	    usage(argv[0]);
> -	    break;
> -	}
> +        case 'h':
> +            usage(argv[0]);
> +            break;
> +        }
>      }
>  
>      agent.LoadPlugins(PLUGINSDIR);

Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

Frediano
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]