Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
sofia-sip
Commits
b99054ac
Commit
b99054ac
authored
Feb 09, 2007
by
Pekka Pessi
Browse files
win32: fixed warnings on win32 build
darcs-hash:20070209144424-55b16-ea65a8d9160569997c137a6c9817c54c3db7219b.gz
parent
3b1b1e1d
Changes
3
Hide whitespace changes
Inline
Side-by-side
libsofia-sip-ua/su/su_localinfo.c
View file @
b99054ac
...
...
@@ -1199,7 +1199,7 @@ static
int
win_localinfo
(
su_localinfo_t
const
hints
[
1
],
su_localinfo_t
**
rresult
)
{
/* This is Windows XP code, for both IPv6 and IPv4. */
size_t
iaa_size
=
2048
;
ULONG
iaa_size
=
2048
;
IP_ADAPTER_ADDRESSES
*
iaa0
,
*
iaa
;
int
error
,
loopback_seen
=
0
;
int
v4_mapped
=
(
hints
->
li_flags
&
LI_V4MAPPED
)
!=
0
;
...
...
@@ -1208,7 +1208,7 @@ int win_localinfo(su_localinfo_t const hints[1], su_localinfo_t **rresult)
int
flags
=
GAA_FLAG_SKIP_MULTICAST
;
*
rresult
=
NULL
;
next
=
rresult
;
iaa0
=
malloc
(
iaa_size
);
iaa0
=
malloc
(
(
size_t
)
iaa_size
);
if
(
!
iaa0
)
{
SU_DEBUG_1
((
"su_localinfo: memory exhausted
\n
"
));
error
=
ELI_MEMORY
;
...
...
@@ -1229,7 +1229,7 @@ int win_localinfo(su_localinfo_t const hints[1], su_localinfo_t **rresult)
IP_ADAPTER_UNICAST_ADDRESS
*
ua
;
IP_ADAPTER_UNICAST_ADDRESS
lua
[
1
];
int
if_index
=
iaa
->
IfIndex
;
in
t
ifnamelen
=
0
;
size_
t
ifnamelen
=
0
;
char
ifname
[
16
];
for
(
ua
=
iaa
->
FirstUnicastAddress
;
;
ua
=
ua
->
Next
)
{
...
...
libsofia-sip-ua/su/su_win32_port.c
View file @
b99054ac
...
...
@@ -637,7 +637,7 @@ int su_wsaevent_clone_start(su_root_t *parent,
su_root_init_f
init
,
su_root_deinit_f
deinit
)
{
return
su_pthreaded_port_start
(
su_wsevent_port_create
,
return
su_pthreaded_port_start
(
su_ws
a
event_port_create
,
parent
,
return_clone
,
magic
,
init
,
deinit
);
}
win32/config.h.in
View file @
b99054ac
...
...
@@ -156,7 +156,7 @@
#else
// XXX: vehmanek-win32-fix for VC6
#undef HAVE_IPHLPAPI_H
#
u
nd
e
f
#
e
nd
i
f
/* Define to 1 if you have IPV6_RECVERR in <netinet/in6.h> */
#undef HAVE_IPV6_RECVERR
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment