Use #pragma once for headers
It's shorter and more reliable. Also GCC/CLang specific, but that's fine because that's all we support anyways. Closes: #69 Closes: #70 Approved by: mrunalp
This commit is contained in:

committed by
Atomic Bot

parent
649a4efbb8
commit
fdf82f9b14
@@ -16,8 +16,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __MOUNTS_H__
|
||||
#define __MOUNTS_H__
|
||||
#pragma once
|
||||
|
||||
typedef enum {
|
||||
BIND_READONLY = (1 << 0),
|
||||
@@ -29,5 +28,3 @@ int bind_mount (int proc_fd,
|
||||
const char *src,
|
||||
const char *dest,
|
||||
bind_option_t options);
|
||||
|
||||
#endif /* __MOUNTS_H__ */
|
||||
|
@@ -16,9 +16,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __NETWORK_H__
|
||||
#define __NETWORK_H__
|
||||
#pragma once
|
||||
|
||||
int loopback_setup (void);
|
||||
|
||||
#endif /* __NETWORK_H__ */
|
||||
|
Reference in New Issue
Block a user