From 05d3a176239c1dd67863c70a5b79d9bc14144ef6 Mon Sep 17 00:00:00 2001 From: Shawn Landden Date: Mon, 18 Nov 2013 07:58:43 -0800 Subject: use #pragma once instead of foo*foo define guards --- src/login/logind-action.h | 5 +---- src/login/logind-button.h | 5 +---- src/login/logind-inhibit.h | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) (limited to 'src/login') diff --git a/src/login/logind-action.h b/src/login/logind-action.h index 552713637d..74f71441f9 100644 --- a/src/login/logind-action.h +++ b/src/login/logind-action.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foologindactionhfoo -#define foologindactionhfoo +#pragma once /*** This file is part of systemd. @@ -50,5 +49,3 @@ const char* handle_action_to_string(HandleAction h) _const_; HandleAction handle_action_from_string(const char *s) _pure_; int config_parse_handle_action(const char *unit, const char *filename, unsigned line, const char *section, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); - -#endif diff --git a/src/login/logind-button.h b/src/login/logind-button.h index 83bf1fc70c..824106cd24 100644 --- a/src/login/logind-button.h +++ b/src/login/logind-button.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foologindbuttonhfoo -#define foologindbuttonhfoo +#pragma once /*** This file is part of systemd. @@ -45,5 +44,3 @@ void button_free(Button*b); int button_open(Button *b); int button_recheck(Button *b); int button_set_seat(Button *b, const char *sn); - -#endif diff --git a/src/login/logind-inhibit.h b/src/login/logind-inhibit.h index ed3b2ebcc3..da3d7e736e 100644 --- a/src/login/logind-inhibit.h +++ b/src/login/logind-inhibit.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foologindinhibithfoo -#define foologindinhibithfoo +#pragma once /*** This file is part of systemd. @@ -93,5 +92,3 @@ InhibitWhat inhibit_what_from_string(const char *s); const char *inhibit_mode_to_string(InhibitMode k); InhibitMode inhibit_mode_from_string(const char *s); - -#endif -- cgit v1.2.3-54-g00ecf