]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool: fix tool_seek_cb build when SIZEOF_CURL_OFF_T > SIZEOF_OFF_T
authorHarry Sintonen <sintonen@iki.fi>
Wed, 19 Jul 2023 08:22:15 +0000 (11:22 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 19 Jul 2023 13:36:41 +0000 (15:36 +0200)
- a variable was renamed, and some use of it wasn't. this fixes the
  build.

Closes #11468

src/tool_cb_see.c

index fd3445682800bea8d02467748b96d7f4b0fca3c9..8351473c8235c8d3693f7537658c5c749028f6b1 100644 (file)
@@ -67,13 +67,13 @@ int tool_seek_cb(void *userdata, curl_off_t offset, int whence)
       /* this code path doesn't support other types */
       return CURL_SEEKFUNC_FAIL;
 
-    if(LSEEK_ERROR == lseek(in->fd, 0, SEEK_SET))
+    if(LSEEK_ERROR == lseek(per->infd, 0, SEEK_SET))
       /* couldn't rewind to beginning */
       return CURL_SEEKFUNC_FAIL;
 
     while(left) {
       long step = (left > OUR_MAX_SEEK_O) ? OUR_MAX_SEEK_L : (long)left;
-      if(LSEEK_ERROR == lseek(in->fd, step, SEEK_CUR))
+      if(LSEEK_ERROR == lseek(per->infd, step, SEEK_CUR))
         /* couldn't seek forwards the desired amount */
         return CURL_SEEKFUNC_FAIL;
       left -= step;