mount_bsd: Remove unused headers
authorVassili Tchersky <vt+git@vbcy.org>
Tue, 18 Feb 2025 12:24:40 +0000 (13:24 +0100)
committerBernd Schubert <bernd@bsbernd.com>
Tue, 18 Feb 2025 21:32:49 +0000 (22:32 +0100)
Removed:
- <sys/user.h>: used to be for kinfo_proc, long gone from the code
- <paths.h>: used to be for _PATH_DEV and _PATH_DEVNULL, long gone
- <limits.h>: used to be for _POSIX2_LINE_MAX, long gone
- <sys/stat.h>: used to be for fstat/stat, long gone

Signed-off-by: Vassili Tchersky <vt+git@vbcy.org>
lib/mount_bsd.c

index 0e841df5f74dd1d313cc8ec27ab70d17ccb42841..bd95a76d32e0c4f53a2c0455ad8fdca6d4ab8480 100644 (file)
@@ -17,9 +17,7 @@
 #include <sys/param.h>
 #include "fuse_mount_compat.h"
 
-#include <sys/stat.h>
 #include <sys/wait.h>
-#include <sys/user.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -27,8 +25,6 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <string.h>
-#include <paths.h>
-#include <limits.h>
 
 #define FUSERMOUNT_PROG                "mount_fusefs"
 #define FUSE_DEV_TRUNK         "/dev/fuse"