Skip to content

Commit

Permalink
sockfilt.c: Fixed compilation warnings
Browse files Browse the repository at this point in the history
sockfilt.c:288: warning: conversion to 'DWORD' from 'size_t' may alter
                its value
sockfilt.c:291: warning: conversion to 'DWORD' from 'size_t' may alter
                its value
sockfilt.c:323: warning: conversion to 'DWORD' from 'size_t' may alter
                its value
sockfilt.c:326: warning: conversion to 'DWORD' from 'size_t' may alter
                its value
  • Loading branch information
captain-caveman2k committed Dec 28, 2014
1 parent d8273e1 commit 4088721
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/server/sockfilt.c
Expand Up @@ -285,10 +285,10 @@ static ssize_t read_wincon(int fd, void *buf, size_t count)
}

if(GetConsoleMode(handle, &mode)) {
success = ReadConsole(handle, buf, count, &rcount, NULL);
success = ReadConsole(handle, buf, curlx_uztoul(count), &rcount, NULL);
}
else {
success = ReadFile(handle, buf, count, &rcount, NULL);
success = ReadFile(handle, buf, curlx_uztoul(count), &rcount, NULL);
}
if(success) {
return rcount;
Expand Down Expand Up @@ -320,10 +320,10 @@ static ssize_t write_wincon(int fd, const void *buf, size_t count)
}

if(GetConsoleMode(handle, &mode)) {
success = WriteConsole(handle, buf, count, &wcount, NULL);
success = WriteConsole(handle, buf, curlx_uztoul(count), &wcount, NULL);
}
else {
success = WriteFile(handle, buf, count, &wcount, NULL);
success = WriteFile(handle, buf, curlx_uztoul(count), &wcount, NULL);
}
if(success) {
return wcount;
Expand Down

0 comments on commit 4088721

Please sign in to comment.