git: Remove useless belt and suspenders include guards in some of our headers.

Sascha Wildner swildner at crater.dragonflybsd.org
Mon Feb 7 07:44:17 PST 2011


commit a8a9459987490a4f350e0ee8bbb1c34c345fa589
Author: Sascha Wildner <saw at online.de>
Date:   Mon Feb 7 16:42:58 2011 +0100

    Remove useless belt and suspenders include guards in some of our headers.
    
    For these headers:
    
    /usr/include/machine/atomic.h
    /usr/include/machine/bus_dma.h
    /usr/include/machine/coredump.h
    /usr/include/machine/cpufunc.h
    /usr/include/machine/db_machdep.h
    /usr/include/machine/elf.h
    /usr/include/machine/endian.h
    /usr/include/machine/frame.h
    /usr/include/machine/limits.h
    /usr/include/machine/npx.h
    /usr/include/machine/profile.h
    /usr/include/machine/segments.h
    /usr/include/machine/stdarg.h
    /usr/include/machine/stdint.h
    /usr/include/machine/trap.h
    /usr/include/machine/tss.h
    /usr/include/machine/ucontext.h
    /usr/include/machine/vframe.h
    /usr/include/machine/vm86.h
    
    All these headers #define _CPU_... and not _MACHINE_... even though they
    are in /usr/include/machine. And the headers themselves have include
    guards already. So there's little point in having them around the actual
    #include additionally.

Summary of changes:
 include/err.h                               |    5 -----
 include/signal.h                            |    2 --
 include/stdarg.h                            |    4 ----
 include/time.h                              |    3 ---
 include/utime.h                             |    3 ---
 lib/libstand/stand.h                        |    3 ---
 sys/cpu/i386/include/lwbuf.h                |    2 --
 sys/cpu/i386/include/signal.h               |    3 ---
 sys/cpu/i386/include/types.h                |    3 ---
 sys/cpu/i386/include/vframe.h               |    6 ------
 sys/cpu/x86_64/include/lwbuf.h              |    2 --
 sys/cpu/x86_64/include/types.h              |    2 --
 sys/cpu/x86_64/include/vframe.h             |    4 ----
 sys/ddb/ddb.h                               |    3 ---
 sys/netinet/icmp6.h                         |    3 ---
 sys/netinet/ip.h                            |    3 ---
 sys/netinet/ip6.h                           |    3 ---
 sys/netinet/ip_var.h                        |    3 ---
 sys/netinet/pim.h                           |    3 ---
 sys/netinet/tcp.h                           |    3 ---
 sys/netinet6/pim6.h                         |    3 ---
 sys/platform/pc32/include/globaldata.h      |    7 -------
 sys/platform/pc32/include/pcb_ext.h         |    7 -------
 sys/platform/pc32/include/thread.h          |    4 ----
 sys/platform/pc32/include/types.h           |    4 ----
 sys/platform/pc64/include/globaldata.h      |    7 -------
 sys/platform/pc64/include/pcb_ext.h         |    5 -----
 sys/platform/pc64/include/thread.h          |    4 ----
 sys/platform/pc64/include/types.h           |    4 ----
 sys/platform/vkernel/include/globaldata.h   |    7 -------
 sys/platform/vkernel/include/pcb_ext.h      |    7 -------
 sys/platform/vkernel/include/thread.h       |    6 ------
 sys/platform/vkernel64/include/globaldata.h |    7 -------
 sys/platform/vkernel64/include/pcb_ext.h    |    4 ----
 sys/platform/vkernel64/include/thread.h     |    6 ------
 sys/sys/bus_dma.h                           |    3 ---
 sys/sys/elf_generic.h                       |    3 ---
 sys/sys/endian.h                            |    3 ---
 sys/sys/gmon.h                              |    3 ---
 sys/sys/ieee754.h                           |    3 ---
 sys/sys/in_cksum.h                          |    3 ---
 sys/sys/linker.h                            |    3 ---
 sys/sys/mchain.h                            |    3 ---
 sys/sys/mplock2.h                           |    2 --
 sys/sys/mutex.h                             |    4 ----
 sys/sys/mutex2.h                            |    2 --
 sys/sys/sbuf.h                              |    5 -----
 sys/sys/serialize.h                         |    4 ----
 sys/sys/signal.h                            |    3 ---
 sys/sys/socket.h                            |    2 --
 sys/sys/socketvar2.h                        |    3 ---
 sys/sys/spinlock2.h                         |    6 ------
 sys/sys/syslink_msg.h                       |    4 ----
 sys/sys/sysref2.h                           |    4 ----
 sys/sys/systm.h                             |    3 ---
 sys/sys/thread.h                            |    4 ----
 sys/sys/thread2.h                           |    4 ----
 sys/sys/times.h                             |    3 ---
 sys/sys/types.h                             |    3 ---
 sys/sys/ucontext.h                          |    3 ---
 sys/sys/user.h                              |    3 ---
 sys/sys/vkernel.h                           |    8 --------
 sys/sys/wait.h                              |    3 ---
 sys/vm/vm_object.h                          |    3 ---
 sys/vm/vm_page.h                            |    3 ---
 65 files changed, 0 insertions(+), 248 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a8a9459987490a4f350e0ee8bbb1c34c345fa589


-- 
DragonFly BSD source repository





More information about the Commits mailing list