lib: Remove global xfile.h includes
[samba.git] / source3 / printing / print_standard.c
index 140ca70739db467eb549fc8e6476e54ae92157ad..4404aeb681d18fc5f39a82607d80ee9eca06d0a3 100644 (file)
@@ -57,6 +57,7 @@
 #include "includes.h"
 #include "system/filesys.h"
 #include "printing/pcap.h"
+#include "lib/util/xfile.h"
 
 /* handle standard printcap - moved from pcap_printer_fn() */
 bool std_pcap_cache_reload(const char *pcap_name, struct pcap_cache **_pcache)
@@ -73,7 +74,8 @@ bool std_pcap_cache_reload(const char *pcap_name, struct pcap_cache **_pcache)
                return false;
        }
 
-       for (; (pcap_line = fgets_slash(NULL, 1024, pcap_file)) != NULL; free(pcap_line)) {
+       for (; (pcap_line = x_fgets_slash(NULL, 1024, pcap_file)) != NULL;
+            free(pcap_line)) {
                char *name = NULL;
                char *comment = NULL;
                char *p, *q;