Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update doc CURLOPT_SEEKDATA #4118



Copy link

commented Jul 16, 2019

fix variable name

fix variable name
@@ -39,7 +39,7 @@ HTTP, FTP, SFTP
static int seek_cb(void *userp, curl_off_t offset, int origin)
struct data *d = (struct data *)userp;
struct data *our_fd = (struct data *)userp;
lseek(our_fd, offset, origin);

This comment has been minimized.

Copy link

bagder Jul 16, 2019


This fixes one problem but this now instead passes in a struct data pointer to lseek() which also seems wrong.

How about we we instead change the lseek() call to become:

lseek(d->our_fd, offset, origin);

@jay jay closed this in fdcb0f4 Jul 17, 2019


This comment has been minimized.

Copy link

commented Jul 17, 2019


caraitto added a commit to caraitto/curl that referenced this pull request Jul 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.