diff mbox series

[2/3] support/reexport.c: Remove unused headers

Message ID 20231025194701.456031-3-pvorel@suse.cz (mailing list archive)
State New, archived
Headers show
Series Add getrandom() fallback, cleanup headers | expand

Commit Message

Petr Vorel Oct. 25, 2023, 7:47 p.m. UTC
Some of them are needed but included elsewhere, e.g. <sys/socket.h>
included in nfslib.h or <string.h> included in xcommon.h, but at least
<sys/random.h> is removed due further code simplification.

Fixes: 878674b3 ("Add reexport helper library")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 support/reexport/reexport.c | 7 -------
 1 file changed, 7 deletions(-)

Comments

Richard Weinberger Oct. 25, 2023, 7:56 p.m. UTC | #1
----- Ursprüngliche Mail -----
> Von: "Petr Vorel" <pvorel@suse.cz>
> An: "linux-nfs" <linux-nfs@vger.kernel.org>
> CC: "Petr Vorel" <pvorel@suse.cz>, "richard" <richard@nod.at>, "Steve Dickson" <steved@redhat.com>
> Gesendet: Mittwoch, 25. Oktober 2023 21:47:00
> Betreff: [PATCH 2/3] support/reexport.c: Remove unused headers

> Some of them are needed but included elsewhere, e.g. <sys/socket.h>
> included in nfslib.h or <string.h> included in xcommon.h, but at least
> <sys/random.h> is removed due further code simplification.
> 
> Fixes: 878674b3 ("Add reexport helper library")
> Signed-off-by: Petr Vorel <pvorel@suse.cz>

Reviewed-by: Richard Weinberger <richard@nod.at>

Thanks,
//richard
diff mbox series

Patch

diff --git a/support/reexport/reexport.c b/support/reexport/reexport.c
index d9a700af..78516586 100644
--- a/support/reexport/reexport.c
+++ b/support/reexport/reexport.c
@@ -5,16 +5,9 @@ 
 #ifdef HAVE_DLFCN_H
 #include <dlfcn.h>
 #endif
-#include <stdint.h>
-#include <stdio.h>
-#include <sys/random.h>
-#include <sys/stat.h>
 #include <sys/types.h>
 #include <sys/vfs.h>
-#include <unistd.h>
 #include <errno.h>
-#include <sys/socket.h>
-#include <sys/un.h>
 
 #include "nfsd_path.h"
 #include "conffile.h"