Cleanup: apply `include-what-you-use` guideline for `fpos_t`
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 3 Dec 2019 20:42:33 +0000 (15:42 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 13 Feb 2020 17:10:31 +0000 (12:10 -0500)
I saw that some files use the `fpos_t` type but there are not including
a header for it. The `fpos_t` type is defined by the following header:
  <stdio.h>

So, to follow the best practice of including what is used in a file, I
added `#include <stdio.h>` in files using `fpos_t`.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I808ad0b23f04389fd56f89aa001095b771a327d6

snprintf/local.h
snprintf/various.h

index d9251bf61c8021c5695aa526771d6a3214673442..57b233714292387598e29820498b575d1d00e8b8 100644 (file)
@@ -37,7 +37,8 @@
  * in particular, macros and private variables.
  */
 
-#include <wchar.h> 
+#include <stdio.h>
+#include <wchar.h>
 #include "various.h"
 #include "wcio.h"
 #include "fileext.h"
index 638428fd47001606056e9a5cefd8c472e747ce92..64f1db1fb44aedffd27c8db0f47c272284280789 100644 (file)
@@ -35,6 +35,7 @@
 
 #include <stdarg.h>
 #include <stddef.h>
+#include <stdio.h>
 
 struct __lttng_ust_sbuf {
         unsigned char *_base;
This page took 0.025895 seconds and 4 git commands to generate.