From 5ddd435919073d71f788858b2334ff249142271f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 21 Aug 2014 15:42:44 +0200 Subject: Convert recently-introduced header files to #pragma once --- include/osmocom/core/macaddr.h | 5 +---- include/osmocom/ctrl/control_cmd.h | 5 +---- include/osmocom/ctrl/control_if.h | 6 +----- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/include/osmocom/core/macaddr.h b/include/osmocom/core/macaddr.h index 3a4e67ff..8de62382 100644 --- a/include/osmocom/core/macaddr.h +++ b/include/osmocom/core/macaddr.h @@ -1,7 +1,4 @@ -#ifndef _OSMO_MACADDR_H -#define _OSMO_MACADDR_H +#pragma once int osmo_macaddr_parse(uint8_t *out, const char *in); int osmo_get_macaddr(uint8_t *mac_out, const char *dev_name); - -#endif diff --git a/include/osmocom/ctrl/control_cmd.h b/include/osmocom/ctrl/control_cmd.h index e38db037..9e949631 100644 --- a/include/osmocom/ctrl/control_cmd.h +++ b/include/osmocom/ctrl/control_cmd.h @@ -1,5 +1,4 @@ -#ifndef _CONTROL_CMD_H -#define _CONTROL_CMD_H +#pragma once #include #include @@ -174,5 +173,3 @@ static int verify_##cmdname(struct ctrl_cmd *cmd, const char *value, void *data) CTRL_CMD_DEFINE_STRUCT(cmdname, cmdstr, verify_##cmdname) struct gsm_network; - -#endif /* _CONTROL_CMD_H */ diff --git a/include/osmocom/ctrl/control_if.h b/include/osmocom/ctrl/control_if.h index 3ac8bb6c..00caacc2 100644 --- a/include/osmocom/ctrl/control_if.h +++ b/include/osmocom/ctrl/control_if.h @@ -1,5 +1,4 @@ -#ifndef _CONTROL_IF_H -#define _CONTROL_IF_H +#pragma once #include #include @@ -25,6 +24,3 @@ struct ctrl_handle *ctrl_interface_setup(void *data, uint16_t port, ctrl_cmd_lookup lookup); int ctrl_cmd_handle(struct ctrl_handle *ctrl, struct ctrl_cmd *cmd, void *data); - -#endif /* _CONTROL_IF_H */ - -- cgit v1.2.3