summaryrefslogtreecommitdiff
path: root/src/nss-myhostname
diff options
context:
space:
mode:
authorShawn Landden <shawn@churchofgit.com>2013-11-18 07:58:43 -0800
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-11-18 20:28:54 -0500
commit05d3a176239c1dd67863c70a5b79d9bc14144ef6 (patch)
treeea288f8cd73c1cb071941e15427a6044f4d0c230 /src/nss-myhostname
parentd5d217eae1b3ba978c4ddd6a2ef2de4621329662 (diff)
use #pragma once instead of foo*foo define guards
Diffstat (limited to 'src/nss-myhostname')
-rw-r--r--src/nss-myhostname/ifconf.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/nss-myhostname/ifconf.h b/src/nss-myhostname/ifconf.h
index 2764a0aa0f..cd598d2b43 100644
--- a/src/nss-myhostname/ifconf.h
+++ b/src/nss-myhostname/ifconf.h
@@ -1,9 +1,6 @@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-#ifndef fooifconfhfoo
-#define fooifconfhfoo
-
-#include <sys/socket.h>
+#pragma once
/***
This file is part of systemd.
@@ -27,6 +24,7 @@
#include <inttypes.h>
#include <sys/types.h>
#include <assert.h>
+#include <sys/socket.h>
struct address {
unsigned char family;
@@ -68,6 +66,3 @@ static inline int address_compare(const void *_a, const void *_b) {
return 0;
}
-
-
-#endif