mirror of https://gerrit.osmocom.org/libosmocore
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
This commit is contained in:
parent
80f4ff9368
commit
5594430405
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue