mailing list of musl libc
 help / color / mirror / code / Atom feed
* include guard cleanup
@ 2012-06-15  9:53 Szabolcs Nagy
  0 siblings, 0 replies; only message in thread
From: Szabolcs Nagy @ 2012-06-15  9:53 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 160 bytes --]

sendfile.h had the wrong include guard

so i fixed all include guards to use the same convention:
echo headername |sed 's/[/.]/_/g;s/^/_/' |tr '[a-z]' '[A-Z]'


[-- Attachment #2: incguard.diff --]
[-- Type: text/x-diff, Size: 2819 bytes --]

diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h
index 0f85460..778d3e7 100644
--- a/include/arpa/nameser.h
+++ b/include/arpa/nameser.h
@@ -1,5 +1,5 @@
-#ifndef _ARPA_NAMESER_H_
-#define _ARPA_NAMESER_H_
+#ifndef _ARPA_NAMESER_H
+#define _ARPA_NAMESER_H
 
 #define __NAMESER	19991006
 #define NS_PACKETSZ	512
diff --git a/include/elf.h b/include/elf.h
index b011e78..5834027 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -1,5 +1,5 @@
 #ifndef _ELF_H
-#define	_ELF_H 1
+#define _ELF_H
 
 #ifdef __cplusplus
 extern "C" {
diff --git a/include/net/ethernet.h b/include/net/ethernet.h
index f3c11e7..c8d4177 100644
--- a/include/net/ethernet.h
+++ b/include/net/ethernet.h
@@ -1,5 +1,5 @@
-#ifndef __NET_ETHERNET_H
-#define __NET_ETHERNET_H 1
+#ifndef _NET_ETHERNET_H
+#define _NET_ETHERNET_H
 
 #ifdef __cplusplus
 extern "C" {
diff --git a/include/paths.h b/include/paths.h
index 8021917..d0a5a6d 100644
--- a/include/paths.h
+++ b/include/paths.h
@@ -1,5 +1,5 @@
-#ifndef _PATHS_H_
-#define	_PATHS_H_
+#ifndef _PATHS_H
+#define _PATHS_H
 
 #define	_PATH_DEFPATH "/usr/local/bin:/bin:/usr/bin"
 #define	_PATH_STDPATH "/bin:/usr/bin:/sbin:/usr/sbin"
diff --git a/include/resolv.h b/include/resolv.h
index 5bb0832..855c3c4 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -1,5 +1,5 @@
-#ifndef _RESOLV_H_
-#define _RESOLV_H_
+#ifndef _RESOLV_H
+#define _RESOLV_H
 
 #include <stdint.h>
 #include <arpa/nameser.h>
diff --git a/include/sys/fsuid.h b/include/sys/fsuid.h
index f62184c..c7a9b8f 100644
--- a/include/sys/fsuid.h
+++ b/include/sys/fsuid.h
@@ -1,5 +1,5 @@
-#ifndef	_FSUID_H
-#define	_FSUID_H
+#ifndef _SYS_FSUID_H
+#define _SYS_FSUID_H
 
 #ifdef __cplusplus
 extern "C" {
diff --git a/include/sys/sendfile.h b/include/sys/sendfile.h
index 4bd3ec6..1f2b523 100644
--- a/include/sys/sendfile.h
+++ b/include/sys/sendfile.h
@@ -1,5 +1,5 @@
-#ifndef _SYS_INOTIFY_H
-#define _SYS_INOTIFY_H
+#ifndef _SYS_SENDFILE_H
+#define _SYS_SENDFILE_H
 
 #ifdef __cplusplus
 extern "C" {
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h
index a2e2eaa..65ab60c 100644
--- a/include/sys/sysmacros.h
+++ b/include/sys/sysmacros.h
@@ -1,5 +1,5 @@
-#ifndef _SYSMACROS_H
-#define _SYSMACROS_H
+#ifndef _SYS_SYSMACROS_H
+#define _SYS_SYSMACROS_H
 
 #define major(x) (((x) >> 8) & 0xff)
 #define minor(x) ((x) & 0xff)
diff --git a/include/syscall.h b/include/syscall.h
index f2043aa..4c30578 100644
--- a/include/syscall.h
+++ b/include/syscall.h
@@ -1 +1 @@
-#include <sys/syscall.h>
\ No newline at end of file
+#include <sys/syscall.h>
diff --git a/include/syslog.h b/include/syslog.h
index 278945f..c0fde11 100644
--- a/include/syslog.h
+++ b/include/syslog.h
@@ -1,5 +1,5 @@
-#ifndef _SYS_SYSLOG_H
-#define _SYS_SYSLOG_H
+#ifndef _SYSLOG_H
+#define _SYSLOG_H
 
 #ifdef __cplusplus
 extern "C" {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-15  9:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-15  9:53 include guard cleanup Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).