From c2245e3e5c1aef4d4570ae46d3ea6fe506f9917f Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 13 Jul 2018 16:52:50 +0200 Subject: [PATCH] shared/trivial: whitespace --- shared/nm-utils/gsystem-local-alloc.h | 50 ++++++++++++--------------- 1 file changed, 22 insertions(+), 28 deletions(-) diff --git a/shared/nm-utils/gsystem-local-alloc.h b/shared/nm-utils/gsystem-local-alloc.h index 2fee969802..7c60a60ad9 100644 --- a/shared/nm-utils/gsystem-local-alloc.h +++ b/shared/nm-utils/gsystem-local-alloc.h @@ -22,42 +22,36 @@ #define __GSYSTEM_LOCAL_ALLOC_H__ #define NM_AUTO_DEFINE_FCN_VOID(CastType, name, func) \ - static inline void name (void *v) \ - { \ - func (*((CastType *) v)); \ - } +static inline void name (void *v) \ +{ \ + func (*((CastType *) v)); \ +} #define NM_AUTO_DEFINE_FCN_VOID0(CastType, name, func) \ - static inline void name (void *v) \ - { \ - if (*((CastType *) v)) \ - func (*((CastType *) v)); \ - } +static inline void name (void *v) \ +{ \ + if (*((CastType *) v)) \ + func (*((CastType *) v)); \ +} #define NM_AUTO_DEFINE_FCN(Type, name, func) \ - static inline void name (Type *v) \ - { \ - func (*v); \ - } +static inline void name (Type *v) \ +{ \ + func (*v); \ +} #define NM_AUTO_DEFINE_FCN0(Type, name, func) \ - static inline void name (Type *v) \ - { \ - if (*v) \ - func (*v); \ - } +static inline void name (Type *v) \ +{ \ + if (*v) \ + func (*v); \ +} #define NM_AUTO_DEFINE_FCN_STRUCT(Type, name, func) \ - static inline void name (Type *v) \ - { \ - func (v); \ - } - -/* These functions shouldn't be invoked directly; - * they are stubs that: - * 1) Take a pointer to the location (typically itself a pointer). - * 2) Provide %NULL-safety where it doesn't exist already (e.g. g_object_unref) - */ +static inline void name (Type *v) \ +{ \ + func (v); \ +} /** * gs_free: