Clean-up: run format-cpp on the tree
[lttng-tools.git] / src / common / filter / memstream.hpp
index 26b124a9521086b7030b9c6bae13f2a58373a241..4fbdc02fe2bd241eaeb9fae25d92d37a3fc85946 100644 (file)
 #ifdef LTTNG_HAVE_FMEMOPEN
 #include <stdio.h>
 
-static inline
-FILE *lttng_fmemopen(void *buf, size_t size, const char *mode)
+static inline FILE *lttng_fmemopen(void *buf, size_t size, const char *mode)
 {
        return fmemopen(buf, size, mode);
 }
 
 #else /* LTTNG_HAVE_FMEMOPEN */
 
-#include <stdlib.h>
-#include <stdio.h>
 #include <common/error.hpp>
 
+#include <stdio.h>
+#include <stdlib.h>
+
 /*
  * Fallback for systems which don't have fmemopen. Copy buffer to a
  * temporary file, and use that file as FILE * input.
  */
-static inline
-FILE *lttng_fmemopen(void *buf, size_t size, const char *mode)
+static inline FILE *lttng_fmemopen(void *buf, size_t size, const char *mode)
 {
        char tmpname[PATH_MAX];
        size_t len;
This page took 0.023001 seconds and 4 git commands to generate.