Skip to content

Commit

Permalink
Fix header guards (fixes amscanne#2).
Browse files Browse the repository at this point in the history
TIL: Leading underscores followed by a capital letter is
actually a reserved identifier. This replaces the header
guards with a non-reserved identifier.
  • Loading branch information
amscanne authored and amrali committed Dec 23, 2013
1 parent ba54c48 commit 9451254
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/fdinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* along with Huptime. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _FDINFO_H_
#define _FDINFO_H_
#ifndef HUPTIME_FDINFO_H
#define HUPTIME_FDINFO_H

#include <stdlib.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions src/fdtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* along with Huptime. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _FDTABLE_H_
#define _FDTABLE_H_
#ifndef HUPTIME_FDTABLE_H
#define HUPTIME_FDTABLE_H

#include "fdinfo.h"

Expand Down
4 changes: 2 additions & 2 deletions src/funcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* along with Huptime. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _FUNCS_H_
#define _FUNCS_H_
#ifndef HUPTIME_FUNCS_H
#define HUPTIME_FUNCS_H

#include <unistd.h>
#include <sys/types.h>
Expand Down
4 changes: 2 additions & 2 deletions src/impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* along with Huptime. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _IMPL_H_
#define _IMPL_H_
#ifndef HUPTIME_IMPL_H
#define HUPTIME_IMPL_H

#include "funcs.h"

Expand Down
4 changes: 2 additions & 2 deletions src/stubs.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* along with Huptime. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _STUBS_H_
#define _STUBS_H_
#ifndef HUPTIME_STUBS_H
#define HUPTIME_STUBS_H

#include "funcs.h"

Expand Down
4 changes: 2 additions & 2 deletions src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* along with Huptime. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _UTILS_H_
#define _UTILS_H_
#ifndef HUPTIME_UTILS_H
#define HUPTIME_UTILS_H

#include <unistd.h>
#include <sys/types.h>
Expand Down

0 comments on commit 9451254

Please sign in to comment.