aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-28 20:54:16 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-28 22:34:26 +0000
commit40887217260c4aa112a6c168d6265d8b371fdff1 (patch)
treea50219394e29d52a7585a8e3199a08d942bb321c /tests
parentd8273e198ccba561464c34d80fecbd050dc26511 (diff)
sockfilt.c: Fixed compilation warnings
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
Diffstat (limited to 'tests')
-rw-r--r--tests/server/sockfilt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c
index 670a378aa..a4496e0fb 100644
--- a/tests/server/sockfilt.c
+++ b/tests/server/sockfilt.c
@@ -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;
@@ -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;