Fix various style(9) bugs:
o Unusual order of #ifndef _FOO_H_, followed by license. o Missing tabs in typedef and #define. o Reversed comment for #endif.
This commit is contained in:
parent
440b25e6ba
commit
96a42355e2
@ -1,8 +1,3 @@
|
||||
#ifndef _SEMAPHORE_H_
|
||||
#define _SEMAPHORE_H_
|
||||
|
||||
/* semaphore.h: POSIX 1003.1b semaphores */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997
|
||||
* HD Associates, Inc. All rights reserved.
|
||||
@ -37,6 +32,11 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
/* semaphore.h: POSIX 1003.1b semaphores */
|
||||
|
||||
#ifndef _SEMAPHORE_H_
|
||||
#define _SEMAPHORE_H_
|
||||
|
||||
#include <sys/_posix.h>
|
||||
#include <machine/limits.h>
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
|
||||
/* Opaque type definition. */
|
||||
struct sem;
|
||||
typedef struct sem *sem_t;
|
||||
typedef struct sem * sem_t;
|
||||
|
||||
#define SEM_FAILED ((sem_t *)0)
|
||||
#define SEM_VALUE_MAX UINT_MAX
|
||||
@ -69,4 +69,4 @@ __END_DECLS
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* _SEMAPHORE_H_ */
|
||||
#endif /* !_SEMAPHORE_H_ */
|
||||
|
@ -1,8 +1,3 @@
|
||||
#ifndef _SEMAPHORE_H_
|
||||
#define _SEMAPHORE_H_
|
||||
|
||||
/* semaphore.h: POSIX 1003.1b semaphores */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997
|
||||
* HD Associates, Inc. All rights reserved.
|
||||
@ -37,6 +32,11 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
/* semaphore.h: POSIX 1003.1b semaphores */
|
||||
|
||||
#ifndef _SEMAPHORE_H_
|
||||
#define _SEMAPHORE_H_
|
||||
|
||||
#include <sys/_posix.h>
|
||||
#include <machine/limits.h>
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
|
||||
/* Opaque type definition. */
|
||||
struct sem;
|
||||
typedef struct sem *sem_t;
|
||||
typedef struct sem * sem_t;
|
||||
|
||||
#define SEM_FAILED ((sem_t *)0)
|
||||
#define SEM_VALUE_MAX UINT_MAX
|
||||
@ -69,4 +69,4 @@ __END_DECLS
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* _SEMAPHORE_H_ */
|
||||
#endif /* !_SEMAPHORE_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user