[mojosetup] libfetch: Fix _ftp_seekfn()'s unused variable warning.
Francois Gouget
fgouget at codeweavers.com
Mon Aug 10 13:17:49 EDT 2020
Move the io variable declaration inside the #if where it is used.
Remove that #if's dead branch.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
libfetch/ftp.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/libfetch/ftp.c b/libfetch/ftp.c
index aefc724..dcd5604 100644
--- a/libfetch/ftp.c
+++ b/libfetch/ftp.c
@@ -628,12 +628,8 @@ static fpos_t
_ftp_seekfn(void *v, fpos_t pos __unused, int whence __unused)
#endif
{
- struct ftpio *io;
-
-#if __MOJOSETUP__
- io = (struct ftpio *)v->opaque;
-#else
- io = (struct ftpio *)v;
+#if ! __MOJOSETUP__
+ struct ftpio *io = (struct ftpio *)v;
if (io == NULL) {
errno = EBADF;
return (-1);
--
2.20.1
More information about the mojosetup
mailing list