Skip to contentSkip to conversation

samples: remove duplicate include in fs-monitor.c

PATCH In review [email protected] 2 participants 2 messages Nov 1, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 samples: remove duplicate include in fs-monitor.c

From: Zhang Mingyu <[email protected]>

'sys/types.h' included in 'samples/fanotify/fs-monitor.c' is duplicated.It is also included on 15 line.

---
 samples/fanotify/fs-monitor.c | 1 -
 1 file changed, 1 deletion(-)
samples/fanotify/fs-monitor.c +0 -1
index a0e44cd31e6f..0a5f742a77a8 100644
@@ -12,7 +12,6 @@
 #include <sys/fanotify.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <sys/types.h>
 
 #ifndef FAN_FS_ERROR
 #define FAN_FS_ERROR		0x00008000
Signature · 1 line
2.25.1
#1 lore raw
Quoted 7 lines · On Mon 01-11-21 07:51:52, [email protected] wrote:

From: Zhang Mingyu <[email protected]>

'sys/types.h' included in 'samples/fanotify/fs-monitor.c' is duplicated.It is also included on 15 line.

Thanks. I've added the patch to my tree.

Honza

Quoted 19 lines
---
 samples/fanotify/fs-monitor.c | 1 -
 1 file changed, 1 deletion(-)
samples/fanotify/fs-monitor.c +0 -1
index a0e44cd31e6f..0a5f742a77a8 100644
@@ -12,7 +12,6 @@
 #include <sys/fanotify.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <sys/types.h>
 
 #ifndef FAN_FS_ERROR
 #define FAN_FS_ERROR		0x00008000
Signature · 1 line
2.25.1
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR