mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-18 22:30:01 +00:00
Fix build errors and warnings on Windows
This commit is contained in:
@@ -25,7 +25,7 @@ static void freeAttributeList(PSDP_OPTION head) {
|
||||
/* Get the size of the attribute list */
|
||||
static int getSerializedAttributeListSize(PSDP_OPTION head) {
|
||||
PSDP_OPTION currentEntry = head;
|
||||
int size = 0;
|
||||
size_t size = 0;
|
||||
while (currentEntry != NULL) {
|
||||
size += strlen("a=");
|
||||
size += strlen(currentEntry->name);
|
||||
@@ -35,7 +35,7 @@ static int getSerializedAttributeListSize(PSDP_OPTION head) {
|
||||
|
||||
currentEntry = currentEntry->next;
|
||||
}
|
||||
return size;
|
||||
return (int)size;
|
||||
}
|
||||
|
||||
/* Populate the serialized attribute list into a string */
|
||||
|
||||
Reference in New Issue
Block a user