Commit 40edc237 authored by Kai Vehmanen's avatar Kai Vehmanen

Fixed VC6 compiler warnings.

darcs-hash:20070102113300-77cd4-a7bb0a10b20232403716e4525084b71317ddfe66.gz
parent df7bafd3
......@@ -138,7 +138,7 @@ void sl_from_log(su_log_t *log, int level,
a->a_params = NULL;
if (!a->a_display) a->a_display = "";
return sl_header_log(log, level, fmt, (sip_header_t *)a);
sl_header_log(log, level, fmt, (sip_header_t *)a);
}
/**Log a @To header.
......
......@@ -58,6 +58,10 @@
#include <sofia-sip/su_tag_inline.h>
#include <sofia-sip/su_tagarg.h>
#ifndef HAVE_STRTOULL
unsigned longlong strtoull(const char *, char **, int);
#endif
/**@defgroup su_tag Tag Item Lists
*
* Object-oriented tag routines for Sofia utility library.
......
......@@ -286,7 +286,7 @@ static inline int tport_is_bound(tport_t const *self)
}
/** Test if transport connection has been established. @NEW_1_12_5 */
inline int tport_is_connected(tport_t const *self)
int tport_is_connected(tport_t const *self)
{
return self->tp_is_connected;
}
......@@ -308,7 +308,7 @@ void tport_set_tos(su_socket_t socket, su_addrinfo_t *ai, int tos)
{
if (tos >= 0 &&
ai->ai_family == AF_INET &&
setsockopt(socket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)) < 0) {
setsockopt(socket, IPPROTO_IP, IP_TOS, (const void*)&tos, sizeof(tos)) < 0) {
SU_DEBUG_3(("tport: setsockopt(IP_TOS): %s\n",
su_strerror(su_errno())));
}
......
......@@ -54,7 +54,7 @@
#elif HAVE_FUNCTION
#define __func__ __FUNCTION__
#else
char const __func__[] = "tport_type_tcp";
static char const __func__[] = "tport_type_tcp";
#endif
/* ---------------------------------------------------------------------- */
......
......@@ -58,6 +58,13 @@ int tport_udp_init_client(tport_primary_t *pri,
tagi_t const *tags,
char const **return_culprit);
#if HAVE_FUNC
#elif HAVE_FUNCTION
#define __func__ __FUNCTION__
#else
static char const __func__[] = "tport_type_udp";
#endif
tport_vtable_t const tport_udp_client_vtable =
{
"udp", tport_type_client,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment