summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-09-05 02:58:03 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-09-05 02:58:03 +0700
commit559443040567c5def8fdb84dd43504202e2ae7df (patch)
tree77488dc3224da02e43f594c4dc2785554c4c11d5 /include
parent80f4ff9368cc02273fbe556893957f5b081d7cb1 (diff)
core/utils.h: move includes to the top
Having all inculdes listed in one place is a common good practice, which prevents one from adding duplicates. Change-Id: I3f52189d5e8f9afafc39525e95385a085f8f850a
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/core/utils.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/osmocom/core/utils.h b/include/osmocom/core/utils.h
index 10063cbb..976d4a85 100644
--- a/include/osmocom/core/utils.h
+++ b/include/osmocom/core/utils.h
@@ -1,6 +1,8 @@
#pragma once
#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
#include <osmocom/core/backtrace.h>
#include <osmocom/core/talloc.h>
@@ -30,9 +32,6 @@
/*! Copy a C-string into a sized buffer using sizeof to detect buffer's size */
#define OSMO_STRLCPY_ARRAY(array, src) osmo_strlcpy(array, src, sizeof(array))
-#include <stdint.h>
-#include <stdio.h>
-
/*! A mapping between human-readable string and numeric value */
struct value_string {
unsigned int value; /*!< numeric value */