Fix compiler errors related to unused results

This commit is contained in:
Johan Wikman
2019-01-30 15:22:19 +02:00
parent 0ee63578d0
commit 968743f61a
3 changed files with 37 additions and 10 deletions

View File

@ -118,12 +118,21 @@ int authMaxScale(int so, char* user, char* password)
{
return 0;
}
write(so, user, strlen(user));
int len;
len = strlen(user);
if (write(so, user, len) != len)
{
return 0;
}
if (read(so, buf, 8) != 8)
{
return 0;
}
write(so, password, strlen(password));
len = strlen(password);
if (write(so, password, len) != len)
{
return 0;
}
if (read(so, buf, 6) != 6)
{
return 0;