diff options
author | Thomas Haller <thaller@redhat.com> | 2018-07-13 16:52:50 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-07-18 10:21:27 +0200 |
commit | c2245e3e5c1aef4d4570ae46d3ea6fe506f9917f (patch) | |
tree | e59ed9ac39a6fc40e6bdf241ab2b3cacf9f46cf7 | |
parent | a38782f378853604c5a7464bc94558dbc32c3d42 (diff) | |
download | NetworkManager-c2245e3e5c1aef4d4570ae46d3ea6fe506f9917f.tar.gz |
shared/trivial: whitespace
-rw-r--r-- | shared/nm-utils/gsystem-local-alloc.h | 50 |
1 files 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: |