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:
Rose 2022-10-28 12:32:09 -04:00 committed by Jay Satiro
parent 14061f784c
commit f151ec6c10
23 changed files with 66 additions and 66 deletions

View file

@ -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;