[Spice-devel] [spice-server 2/9] syntax-check: Change tabs to spaces

Christophe Fergeau cfergeau at redhat.com
Thu Oct 27 14:20:55 UTC 2016


On Thu, Oct 27, 2016 at 10:18:19AM -0400, Frediano Ziglio wrote:
> > 
> > ---
> >  server/glib-compat.h | 18 +++++++++---------
> >  1 file changed, 9 insertions(+), 9 deletions(-)
> > 
> > diff --git a/server/glib-compat.h b/server/glib-compat.h
> > index a20a434..4d4ca43 100644
> > --- a/server/glib-compat.h
> > +++ b/server/glib-compat.h
> > @@ -24,9 +24,9 @@
> >  static inline void
> >  g_queue_free_full(GQueue *queue, GDestroyNotify free_func)
> >  {
> > -	/* quite hack cast but work with standard C call convention */
> > -	g_queue_foreach(queue, (GFunc) free_func, NULL);
> > -	g_queue_clear(queue);
> > +        /* quite hack cast but work with standard C call convention */
> > +        g_queue_foreach(queue, (GFunc) free_func, NULL);
> > +        g_queue_clear(queue);
> >  }
> >  #endif
> >  
> > @@ -34,12 +34,12 @@ g_queue_free_full(GQueue *queue, GDestroyNotify
> > free_func)
> >  static inline gboolean
> >  g_queue_remove_boolean(GQueue *queue, gconstpointer data)
> >  {
> > -	GList *link = g_queue_find(queue, data);
> > -	if (!link) {
> > -		return FALSE;
> > -	}
> > -	g_queue_unlink(queue, link);
> > -	return TRUE;
> > +        GList *link = g_queue_find(queue, data);
> > +        if (!link) {
> > +                return FALSE;
> > +        }
> > +        g_queue_unlink(queue, link);
> > +        return TRUE;
> >  }
> >  #define g_queue_remove g_queue_remove_boolean
> >  #endif
> 
> Looks like 8 space tab are used instead of 4.
> Probably my fault, I edited on RHEL 6 without my machine vim settings...

Ah yeah I kept the 8 spaces for tabs without checking whether I should
use something appropriate. I can fix up to 4 spaces, no problem.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20161027/0733e773/attachment.sig>


More information about the Spice-devel mailing list