summaryrefslogtreecommitdiffstats
path: root/vppinfra/vppinfra/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'vppinfra/vppinfra/types.h')
-rw-r--r--vppinfra/vppinfra/types.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/vppinfra/vppinfra/types.h b/vppinfra/vppinfra/types.h
index d5ad6ba18cd..f87bb48c910 100644
--- a/vppinfra/vppinfra/types.h
+++ b/vppinfra/vppinfra/types.h
@@ -51,7 +51,7 @@ typedef short i16;
#include <asm/types.h>
#define CLIB_AVOID_CLASH_WITH_LINUX_TYPES
-#else /* ! CLIB_LINUX_KERNEL */
+#else /* ! CLIB_LINUX_KERNEL */
typedef unsigned char u8;
typedef unsigned short u16;
@@ -128,8 +128,10 @@ typedef u32 clib_address_t;
pointers and machine words (but only when compiling with 64 bit
registers and 32 bit pointers). */
static inline __attribute__ ((always_inline)) uword
-pointer_to_uword (const void * p)
-{ return (uword) (clib_address_t) p; }
+pointer_to_uword (const void *p)
+{
+ return (uword) (clib_address_t) p;
+}
#define uword_to_pointer(u,type) ((type) (clib_address_t) (u))
@@ -162,3 +164,11 @@ typedef f64 fword;
} *) (addr))->_data)
#endif /* included_clib_types_h */
+
+/*
+ * fd.io coding-style-patch-verification: ON
+ *
+ * Local Variables:
+ * eval: (c-set-style "gnu")
+ * End:
+ */