Fix implicit type conversions and warnings on windows builds

The visual studio windows builds spit dozens of lines of warnings
on these.

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2024-12-05 08:55:33 +01:00
parent a15c977cdc
commit b7018c17c7
28 changed files with 178 additions and 119 deletions

View File

@@ -67,7 +67,7 @@ struct ssh_string_struct *ssh_string_new(size_t size)
return NULL;
}
str->size = htonl(size);
str->size = htonl((uint32_t)size);
str->data[0] = 0;
return str;