qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 17/40] char: rename remaining CharDriver to Char


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 17/40] char: rename remaining CharDriver to Chardev
Date: Thu, 12 Jan 2017 11:16:02 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

On 01/11/2017 11:29 AM, Marc-André Lureau wrote:
> CharDriver no longer exists, it has been replaced with Chardev.
> 
> Signed-off-by: Marc-André Lureau <address@hidden>
> ---
>  include/sysemu/char.h | 40 ++++++++++++++++++++--------------------
>  qemu-char.c           | 12 ++++++------
>  2 files changed, 26 insertions(+), 26 deletions(-)
> 

> +++ b/qemu-char.c
> @@ -3171,13 +3171,13 @@ typedef struct {
>      Chardev *chr;
>      char buf[12];
>      size_t buflen;
> -} TCPCharDriverTelnetInit;
> +} TCPChardevTelnetInit;
>  
>  static gboolean tcp_chr_telnet_init_io(QIOChannel *ioc,
>                                         GIOCondition cond G_GNUC_UNUSED,
>                                         gpointer user_data)
>  {
> -    TCPCharDriverTelnetInit *init = user_data;
> +    TCPChardevTelnetInit *init = user_data;
>      ssize_t ret;
>  
>      ret = qio_channel_write(ioc, init->buf, init->buflen, NULL);
> @@ -3204,8 +3204,8 @@ static gboolean tcp_chr_telnet_init_io(QIOChannel *ioc,
>  static void tcp_chr_telnet_init(Chardev *chr)
>  {
>      SocketChardev *s = SOCKET_CHARDEV(chr);
> -    TCPCharDriverTelnetInit *init =
> -        g_new0(TCPCharDriverTelnetInit, 1);
> +    TCPChardevTelnetInit *init =
> +        g_new0(TCPChardevTelnetInit, 1);

This would fit within 80 columns on one line; but I'm also okay if you
don't bother with those sorts of cleanups.

Reviewed-by: Eric Blake <address@hidden>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]