util: firewall: use #pragma once in headers

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Jonathon Jongsma 2019-06-18 11:12:51 -05:00 committed by Ján Tomko
parent 7c6950a879
commit 4b72307b2f
4 changed files with 10 additions and 22 deletions

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRFIREWALL_H
# define LIBVIRT_VIRFIREWALL_H
#pragma once
#include "internal.h"
#include "virautoclean.h"
@ -116,5 +115,3 @@ int virFirewallApply(virFirewallPtr firewall);
void virFirewallSetLockOverride(bool avoid);
VIR_DEFINE_AUTOPTR_FUNC(virFirewall, virFirewallFree);
#endif /* LIBVIRT_VIRFIREWALL_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRFIREWALLD_H
# define LIBVIRT_VIRFIREWALLD_H
#pragma once
#define VIR_FIREWALL_FIREWALLD_SERVICE "org.fedoraproject.FirewallD1"
@ -42,5 +41,3 @@ int virFirewallDApplyRule(virFirewallLayer layer,
int virFirewallDInterfaceSetZone(const char *iface,
const char *zone);
#endif /* LIBVIRT_VIRFIREWALLD_H */

View File

@ -22,9 +22,6 @@
# error "virfirewalldpriv.h may only be included by virfirewalld.c or test suites"
#endif /* LIBVIRT_VIRFIREWALLDPRIV_H_ALLOW */
#ifndef LIBVIRT_VIRFIREWALLDPRIV_H
# define LIBVIRT_VIRFIREWALLDPRIV_H
#pragma once
#define VIR_FIREWALL_FIREWALLD_SERVICE "org.fedoraproject.FirewallD1"
#endif /* LIBVIRT_VIRFIREWALLDPRIV_H */

View File

@ -22,8 +22,7 @@
# error "virfirewallpriv.h may only be included by virfirewall.c or test suites"
#endif /* LIBVIRT_VIRFIREWALLPRIV_H_ALLOW */
#ifndef LIBVIRT_VIRFIREWALLPRIV_H
# define LIBVIRT_VIRFIREWALLPRIV_H
#pragma once
#include "virfirewall.h"
@ -36,5 +35,3 @@ typedef enum {
} virFirewallBackend;
int virFirewallSetBackend(virFirewallBackend backend);
#endif /* LIBVIRT_VIRFIREWALLPRIV_H */