]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Remove an unneeded include
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 28 Mar 2024 12:59:20 +0000 (13:59 +0100)
committerfxlb <[email protected]>
Thu, 28 Mar 2024 18:48:08 +0000 (18:48 +0000)
Remove <fcntl.h> conditional include from util-print.c.

Historically read_infile() was in util.c and used open(), so needed it.
When part of util.c became util-print.c without read_infile(),
the include was left without need.

util-print.c

index 3b633cd46faa42f99bf44cc30484891468ccb900..50a37b799302311fb40f6c7b91a75c5ad9ea75b6 100644 (file)
@@ -41,9 +41,6 @@
 
 #include <sys/stat.h>
 
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>