aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/filesystem.h
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2019-09-24 07:05:12 +0200
committerGuy Harris <guy@alum.mit.edu>2019-09-24 20:54:30 +0000
commit66ad175c47ae8c251a036e735546c3024fb34144 (patch)
treebefa4c0b356bf907843d773a28229273ffff4d93 /wsutil/filesystem.h
parent7d36ae9e7460c5576f956eb4da36aed6960e7faf (diff)
wsutil: Use file descriptor in file_needs_reopen()
There's no extra benefit in having FILE pointer (over file descriptor) passed to file_needs_reopen(). Change-Id: Id49eb2f02b776c2f1ccd9d67fedd7eac38432f52 Reviewed-on: https://code.wireshark.org/review/34600 Reviewed-by: Craig Jackson <cejackson51@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/filesystem.h')
-rw-r--r--wsutil/filesystem.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/wsutil/filesystem.h b/wsutil/filesystem.h
index 690c4a138a..b204fe5932 100644
--- a/wsutil/filesystem.h
+++ b/wsutil/filesystem.h
@@ -11,7 +11,6 @@
#ifndef FILESYSTEM_H
#define FILESYSTEM_H
-#include <stdio.h>
#include "ws_symbol_export.h"
#include "ws_attributes.h"
@@ -306,7 +305,7 @@ WS_DLL_PUBLIC gboolean files_identical(const char *fname1, const char *fname2);
/*
* Check if file has been recreated since it was opened.
*/
-WS_DLL_PUBLIC gboolean file_needs_reopen(FILE* fp, const char* filename);
+WS_DLL_PUBLIC gboolean file_needs_reopen(int fd, const char* filename);
/*
* Copy a file in binary mode, for those operating systems that care about