mirror of
https://github.com/solemnwarning/ipxwrapper
synced 2024-12-30 16:45:37 +01:00
Clean up warnings about comparisons of distinct pointer types.
This commit is contained in:
parent
bdf829766f
commit
7ea305fe95
@ -184,7 +184,7 @@ static int do_EnumProtocols(LPINT protocols, LPVOID buf, LPDWORD bsptr, bool uni
|
||||
|
||||
for(int i = 0; i < rval; ++i)
|
||||
{
|
||||
if(pinfo[i].lpProtocol >= buf && pinfo[i].lpProtocol < (char*)(buf) + bufsize)
|
||||
if(pinfo[i].lpProtocol >= (char*)(buf) && pinfo[i].lpProtocol < (char*)(buf) + bufsize)
|
||||
{
|
||||
name_buf_size += strsize(pinfo[i].lpProtocol, unicode);
|
||||
}
|
||||
@ -199,7 +199,7 @@ static int do_EnumProtocols(LPINT protocols, LPVOID buf, LPDWORD bsptr, bool uni
|
||||
|
||||
for(int i = 0, off = 0; i < rval; ++i)
|
||||
{
|
||||
if(pinfo[i].lpProtocol >= buf && pinfo[i].lpProtocol < (char*)(buf) + bufsize)
|
||||
if(pinfo[i].lpProtocol >= (char*)(buf) && pinfo[i].lpProtocol < (char*)(buf) + bufsize)
|
||||
{
|
||||
int len = strsize(pinfo[i].lpProtocol, unicode);
|
||||
|
||||
|
@ -33,9 +33,9 @@
|
||||
const novell_ipx_packet *ipx; \
|
||||
size_t ipx_len; \
|
||||
\
|
||||
ok(func(&ipx, &ipx_len, FRAME, frame_len), #func "(<" desc ">) succeeds"); \
|
||||
ok((ipx == (FRAME + expect_ipx_off)), #func "(<" desc ">) returns the correct payload address"); \
|
||||
is_int(expect_ipx_len, ipx_len, #func "(<" desc ">) returns the correct payload length"); \
|
||||
ok(func(&ipx, &ipx_len, FRAME, frame_len), #func "(<" desc ">) succeeds"); \
|
||||
ok((ipx == (novell_ipx_packet*)(FRAME + expect_ipx_off)), #func "(<" desc ">) returns the correct payload address"); \
|
||||
is_int(expect_ipx_len, ipx_len, #func "(<" desc ">) returns the correct payload length"); \
|
||||
}
|
||||
|
||||
#define UNPACK_BAD_FRAME(func, desc, frame_len, ...) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user