aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/vty
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2014-06-16 10:13:40 +0200
committerSylvain Munaut <tnt@246tNt.com>2014-06-16 10:17:27 +0200
commit12ba778afdb797575e05284decd34cf2c27e3647 (patch)
tree8e98b7859c8866d706af877cd9edac3e1db5a09f /include/osmocom/vty
parentb0a3c2f1de73cb3acd70f7c93be8fc7e8925f31e (diff)
include: Switch to #pragma once pattern
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'include/osmocom/vty')
-rw-r--r--include/osmocom/vty/buffer.h5
-rw-r--r--include/osmocom/vty/command.h4
-rw-r--r--include/osmocom/vty/logging.h5
-rw-r--r--include/osmocom/vty/misc.h5
-rw-r--r--include/osmocom/vty/telnet_interface.h5
-rw-r--r--include/osmocom/vty/vector.h5
-rw-r--r--include/osmocom/vty/vty.h5
7 files changed, 7 insertions, 27 deletions
diff --git a/include/osmocom/vty/buffer.h b/include/osmocom/vty/buffer.h
index c9467a91..482a919e 100644
--- a/include/osmocom/vty/buffer.h
+++ b/include/osmocom/vty/buffer.h
@@ -20,8 +20,7 @@
* Boston, MA 02111-1307, USA.
*/
-#ifndef _ZEBRA_BUFFER_H
-#define _ZEBRA_BUFFER_H
+#pragma once
#include <sys/types.h>
@@ -98,5 +97,3 @@ extern buffer_status_t buffer_flush_all(struct buffer *, int fd);
*/
extern buffer_status_t buffer_flush_window(struct buffer *, int fd, int width,
int height, int erase, int no_more);
-
-#endif /* _ZEBRA_BUFFER_H */
diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h
index b3b30291..3acbe78f 100644
--- a/include/osmocom/vty/command.h
+++ b/include/osmocom/vty/command.h
@@ -20,8 +20,7 @@
* Boston, MA 02111-1307, USA.
*/
-#ifndef _ZEBRA_COMMAND_H
-#define _ZEBRA_COMMAND_H
+#pragma once
#include <stdio.h>
#include <sys/types.h>
@@ -376,4 +375,3 @@ void print_version(int print_copyright);
extern void *tall_vty_cmd_ctx;
/*! @} */
-#endif /* _ZEBRA_COMMAND_H */
diff --git a/include/osmocom/vty/logging.h b/include/osmocom/vty/logging.h
index e0011bf9..9e4b98f9 100644
--- a/include/osmocom/vty/logging.h
+++ b/include/osmocom/vty/logging.h
@@ -1,5 +1,4 @@
-#ifndef _VTY_LOGGING_H
-#define _VTY_LOGGING_H
+#pragma once
#define LOGGING_STR "Configure log message to this terminal\n"
#define FILTER_STR "Filter log messages\n"
@@ -8,5 +7,3 @@ struct log_info;
void logging_vty_add_cmds(const struct log_info *cat);
struct vty;
struct log_target *osmo_log_vty2tgt(struct vty *vty);
-
-#endif /* _VTY_LOGGING_H */
diff --git a/include/osmocom/vty/misc.h b/include/osmocom/vty/misc.h
index db4f4a77..db552e77 100644
--- a/include/osmocom/vty/misc.h
+++ b/include/osmocom/vty/misc.h
@@ -1,5 +1,4 @@
-#ifndef OSMO_VTY_MISC_H
-#define OSMO_VTY_MISC_H
+#pragma once
#include <osmocom/vty/vty.h>
#include <osmocom/core/rate_ctr.h>
@@ -15,5 +14,3 @@ void vty_out_rate_ctr_group(struct vty *vty, const char *prefix,
int osmo_vty_write_config_file(const char *filename);
int osmo_vty_save_config_file(void);
-
-#endif
diff --git a/include/osmocom/vty/telnet_interface.h b/include/osmocom/vty/telnet_interface.h
index 3c222014..e939ec71 100644
--- a/include/osmocom/vty/telnet_interface.h
+++ b/include/osmocom/vty/telnet_interface.h
@@ -18,8 +18,7 @@
*
*/
-#ifndef TELNET_INTERFACE_H
-#define TELNET_INTERFACE_H
+#pragma once
#include <osmocom/core/logging.h>
#include <osmocom/core/select.h>
@@ -52,5 +51,3 @@ int telnet_init_dynif(void *tall_ctx, void *priv, const char *ip, int port);
void telnet_exit(void);
/*! @} */
-
-#endif /* TELNET_INTERFACE_H */
diff --git a/include/osmocom/vty/vector.h b/include/osmocom/vty/vector.h
index 22a184d6..7caa5ffd 100644
--- a/include/osmocom/vty/vector.h
+++ b/include/osmocom/vty/vector.h
@@ -20,8 +20,7 @@
* 02111-1307, USA.
*/
-#ifndef _ZEBRA_VECTOR_H
-#define _ZEBRA_VECTOR_H
+#pragma once
/* struct for vector */
struct _vector {
@@ -60,5 +59,3 @@ void *vector_lookup(vector, unsigned int);
void *vector_lookup_ensure(vector, unsigned int);
extern void *tall_vty_vec_ctx;
-
-#endif /* _ZEBRA_VECTOR_H */
diff --git a/include/osmocom/vty/vty.h b/include/osmocom/vty/vty.h
index ea987bf3..ea02e4a0 100644
--- a/include/osmocom/vty/vty.h
+++ b/include/osmocom/vty/vty.h
@@ -1,5 +1,4 @@
-#ifndef _VTY_H
-#define _VTY_H
+#pragma once
#include <stdio.h>
#include <stdarg.h>
@@ -205,5 +204,3 @@ struct vty_signal_data {
};
/*! @} */
-
-#endif