plugin/ftp/lib: fixed clang warning

git-svn-id: svn://ultimatepp.org/upp/trunk@15841 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2021-03-12 17:23:39 +00:00
parent 6cb8caa1c0
commit c19b5b1421
2 changed files with 3 additions and 3 deletions

View file

@ -526,7 +526,7 @@ GLOBALDEF int FtpConnect(const char *host, netbuf **nControl, char perror[],
delete[] ctrl->buf;
delete ctrl;
return 0;
}
}
*nControl = ctrl;
return 1;
}
@ -536,7 +536,7 @@ GLOBALDEF int FtpConnect(const char *host, netbuf **nControl, char perror[],
*
* returns 1 if successful, 0 on error
*/
GLOBALDEF int FtpOptions(int opt, long val, netbuf *nControl)
GLOBALDEF int FtpOptions(int opt, uintptr_t val, netbuf *nControl)
{
int v,rv=0;
switch (opt)

View file

@ -62,7 +62,7 @@ GLOBALREF void FtpInit(void);
GLOBALREF char *FtpLastResponse(netbuf *nControl);
GLOBALREF int FtpConnect(const char *host, netbuf **nControl, char perror[512],
FtpCallback idlecb, void *idledata, int idletime_msecs, int idletimeout_secs);
GLOBALREF int FtpOptions(int opt, long val, netbuf *nControl);
GLOBALREF int FtpOptions(int opt, uintptr_t val, netbuf *nControl);
GLOBALREF int FtpLogin(const char *user, const char *pass, netbuf *nControl);
GLOBALREF int FtpAccess(const char *path, int typ, int mode, netbuf *nControl,
netbuf **nData);