mirror of
https://github.com/curl/curl.git
synced 2026-07-28 10:33:08 +03:00
tidy-up: replace (-1 == expressions examples
This commit is contained in:
parent
571c57c508
commit
b17c0a2b4f
2 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ static int my_seek(void *userp, curl_off_t offset, int origin)
|
|||
{
|
||||
FILE *fp = (FILE *) userp;
|
||||
|
||||
if(-1 == fseek(fp, (long) offset, origin))
|
||||
if(fseek(fp, (long) offset, origin) == -1)
|
||||
/* could not seek */
|
||||
return CURL_SEEKFUNC_CANTSEEK;
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ static int sftpResumeUpload(CURL *curlhandle, const char *remotepath,
|
|||
CURLcode result = CURLE_GOT_NOTHING;
|
||||
|
||||
curl_off_t remoteFileSizeByte = sftpGetRemoteFileSize(remotepath);
|
||||
if(-1 == remoteFileSizeByte) {
|
||||
if(remoteFileSizeByte == -1) {
|
||||
printf("Error reading the remote file size: unable to resume upload\n");
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue