mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:03:39 +03:00
lib: fix some type mismatches and remove unneeded typecasts
Many of these castings are unneeded if we change the variables to work better with each other. Ref: https://github.com/curl/curl/pull/9823 Closes https://github.com/curl/curl/pull/9835
This commit is contained in:
parent
14061f784c
commit
f151ec6c10
23 changed files with 66 additions and 66 deletions
|
|
@ -205,9 +205,9 @@ CURLcode Curl_ftp_parselist_geterror(struct ftp_parselist_data *pl_data)
|
|||
|
||||
#define FTP_LP_MALFORMATED_PERM 0x01000000
|
||||
|
||||
static int ftp_pl_get_permission(const char *str)
|
||||
static unsigned int ftp_pl_get_permission(const char *str)
|
||||
{
|
||||
int permissions = 0;
|
||||
unsigned int permissions = 0;
|
||||
/* USER */
|
||||
if(str[0] == 'r')
|
||||
permissions |= 1 << 8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue