aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-09-28 23:51:42 +0700
committerlaforge <laforge@osmocom.org>2022-09-29 05:44:09 +0000
commit395db204b40efdaf4e389a1a4ecc3ebd038c1198 (patch)
treecea9213eddfdcca42ca27e282efb3ca73250cd3e /include/osmocom/core
parent71ad530f7e3955ffbf59473dbcb8d1a3357b1f87 (diff)
include: use '#pragma once' everywhere
Diffstat (limited to 'include/osmocom/core')
-rw-r--r--include/osmocom/core/isdnhdlc.h5
-rw-r--r--include/osmocom/core/sercomm.h5
2 files changed, 2 insertions, 8 deletions
diff --git a/include/osmocom/core/isdnhdlc.h b/include/osmocom/core/isdnhdlc.h
index 43e6e7ac..c8cfdc3a 100644
--- a/include/osmocom/core/isdnhdlc.h
+++ b/include/osmocom/core/isdnhdlc.h
@@ -22,8 +22,7 @@
* GNU General Public License for more details.
*/
-#ifndef __ISDNHDLC_H__
-#define __ISDNHDLC_H__
+#pragma once
#include <stdint.h>
@@ -76,5 +75,3 @@ extern void osmo_isdnhdlc_out_init(struct osmo_isdnhdlc_vars *hdlc, uint32_t fea
extern int osmo_isdnhdlc_encode(struct osmo_isdnhdlc_vars *hdlc, const uint8_t *src,
uint16_t slen, int *count, uint8_t *dst, int dsize);
-
-#endif /* __ISDNHDLC_H__ */
diff --git a/include/osmocom/core/sercomm.h b/include/osmocom/core/sercomm.h
index 072f4d9c..38e6271c 100644
--- a/include/osmocom/core/sercomm.h
+++ b/include/osmocom/core/sercomm.h
@@ -2,8 +2,7 @@
* Osmocom Sercomm HDLC (de)multiplex.
*/
-#ifndef _SERCOMM_H
-#define _SERCOMM_H
+#pragma once
#include <osmocom/core/msgb.h>
@@ -110,5 +109,3 @@ static inline struct msgb *osmo_sercomm_alloc_msgb(unsigned int len)
}
/*! @} */
-
-#endif /* _SERCOMM_H */