samples: remove duplicate include in fs-monitor.c
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.
Reported-by Zeal Robot <[email protected]>
Signed-off-by Zhang Mingyu <[email protected]>
--- samples/fanotify/fs-monitor.c | 1 - 1 file changed, 1 deletion(-)
samples/fanotify/fs-monitor.c +0 -1
@@ -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
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.Reported-by Zeal Robot <[email protected]>Signed-off-by Zhang Mingyu <[email protected]>
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@@ -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 0x00008000Signature · 1 line
2.25.1
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR