Please note, there was an error in the first patch below to su_alloc.c:
sofia-sip\libsofia-sip-ua\su\su_alloc.c(551) : error C2065: 'REF_MAX' :
undeclared identifier
Also, please see attached another little patch to clean up a few more
bits. The sres.c include of su.h was to include the prototypes for the
inet_* functions, I just did them inline in sres.c instead in this
patch.
Mike
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:sofia-sip-
> [EMAIL PROTECTED] On Behalf Of Sofia-SIP Darcs
Changes
> Sent: Monday, September 11, 2006 2:56 PM
> To: [email protected]
> Subject: [Sofia-sip-devel] sofia-sip changes (2006-09-11)
>
> This posting was generated automatically from darcs repo
> <http://sofia-sip.org/repos>.
>
> Mon Sep 11 15:54:44 EEST 2006 [EMAIL PROTECTED]
> * libsofia-sip-ua: more 64-bit fixes: internally using size_t
instead of
> int.
>
> M ./libsofia-sip-ua/http/http_extra.c -11 +9
> M ./libsofia-sip-ua/sdp/sdp.c -47 +41
> M ./libsofia-sip-ua/sip/sip_util.c -1 +1
> M ./libsofia-sip-ua/sip/validator.c -1 +1
> M ./libsofia-sip-ua/stun/stun_common.c -1 +1
> M ./libsofia-sip-ua/su/su_alloc.c -29 +29
> M ./libsofia-sip-ua/su/su_md5.c -4 +4
> M ./libsofia-sip-ua/su/su_vector.c -10 +15
> M ./libsofia-sip-ua/tport/tport_internal.h -1 +1
> M ./libsofia-sip-ua/url/url.c -1 +1
>
> Mon Sep 11 15:39:56 EEST 2006 [EMAIL PROTECTED]
> * sres.c: small fixes with size_t usage.
>
> Note that sresolv module tries very hard not to depend on <sofia-
> sip/su.h>.
>
> M ./libsofia-sip-ua/sresolv/sres.c -5 +8
>
> Sun Sep 10 10:34:04 EEST 2006 [EMAIL PROTECTED]
> * fix safe to fix msvc 2005 level 3 warnings with /w64 by changing
many
> types of variables internal to fuctions, to be more strongly typed to
> function prototypes and returns
>
> M ./libsofia-sip-ua/http/http_extra.c -3 +3
> M ./libsofia-sip-ua/http/http_parser.c -2 +2
> M ./libsofia-sip-ua/ipt/base64.c -1 +1
> M ./libsofia-sip-ua/iptsec/auth_client.c -1 +1
> M ./libsofia-sip-ua/iptsec/auth_module.c -1 +1
> M ./libsofia-sip-ua/msg/msg_header_copy.c -2 +2
> M ./libsofia-sip-ua/msg/msg_parser.c -3 +3
> M ./libsofia-sip-ua/msg/msg_tag.c -1 +1
> M ./libsofia-sip-ua/nea/nea_server.c -1 +1
> M ./libsofia-sip-ua/nta/nta.c -6 +9
> M ./libsofia-sip-ua/nta/sl_read_payload.c -1 +1
> M ./libsofia-sip-ua/nta/sl_utils_log.c -2 +2
> M ./libsofia-sip-ua/nta/sl_utils_print.c -1 +1
> M ./libsofia-sip-ua/nth/nth_server.c -1 +1
> M ./libsofia-sip-ua/nua/outbound.c -1 +1
> M ./libsofia-sip-ua/sdp/sdp.c -14 +14
> M ./libsofia-sip-ua/sdp/sdp_print.c -1 +1
> M ./libsofia-sip-ua/sip/sip_basic.c -2 +2
> M ./libsofia-sip-ua/sip/sip_parser.c -1 +1
> M ./libsofia-sip-ua/sip/sip_pref_util.c -1 +2
> M ./libsofia-sip-ua/sip/sip_tag_class.c -1 +1
> M ./libsofia-sip-ua/sip/sip_util.c -1 +1
> M ./libsofia-sip-ua/stun/stun_common.c -1 +2
> M ./libsofia-sip-ua/su/su_md5.c -4 +4
> M ./libsofia-sip-ua/su/su_strlst.c -1 +1
> M ./libsofia-sip-ua/su/su_vector.c -1 +1
> M ./libsofia-sip-ua/tport/tport.c -3 +3
> M ./libsofia-sip-ua/tport/tport_logging.c -1 +1
> M ./libsofia-sip-ua/tport/tport_type_tcp.c -1 +1
> M ./libsofia-sip-ua/tport/tport_type_udp.c -1 +1
> M ./libsofia-sip-ua/url/url.c -1 +1
> M ./libsofia-sip-ua/url/url_tag.c -1 +1
>
> Sat Sep 9 00:32:20 EEST 2006 [EMAIL PROTECTED]
> * fix msvc 2005 level 3 warnings
>
> M ./libsofia-sip-ua/sresolv/sres.c +1
> M ./libsofia-sip-ua/su/su_alloc.c -1 +1
>
> Sat Sep 9 14:34:43 EEST 2006 [EMAIL PROTECTED]
> * soa.c: soa_set_sdp() uses now issize_t, too.
>
> M ./libsofia-sip-ua/soa/soa.c -6 +8
>
>
------------------------------------------------------------------------
-
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Sofia-sip-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
New patches:
[more msvc warning fixes
[EMAIL PROTECTED] {
hunk ./libsofia-sip-ua/http/http_header.c 60
- unsigned len;
+ usize_t len;
hunk ./libsofia-sip-ua/http/http_header.c 120
- unsigned len = 0;
+ usize_t len = 0;
hunk ./libsofia-sip-ua/msg/msg_parser_util.c 499
- int i, n;
+ int i;
+ isize_t n;
hunk ./libsofia-sip-ua/msg/msg_parser_util.c 740
- int n = strspn(++s, HEX ":.");
+ size_t n = strspn(++s, HEX ":.");
hunk ./libsofia-sip-ua/msg/msg_parser_util.c 1003
- int i, n = strlen(token);
+ int i;
+ size_t n = strlen(token);
hunk ./libsofia-sip-ua/msg/msg_tag.c 275
- dst->t_value = (long)mo;
+ dst->t_value = (tag_value_t)mo;
hunk ./libsofia-sip-ua/sdp/sdp_parse.c 965
- int i, n, N;
+ size_t i;
+ int n, N;
hunk ./libsofia-sip-ua/sdp/sdp_parse.c 1033
- int i, n, N;
+ size_t i;
+ int n, N;
hunk ./libsofia-sip-ua/sresolv/sres.c 68
+extern int inet_pton(int af, char const *src, void *dst);
+extern const char *inet_ntop(int af, void const *src,
+ char *dst, size_t size);
}
Context:
[sres.c: small fixes with size_t usage.
[EMAIL PROTECTED]
Note that sresolv module tries very hard not to depend on <sofia-sip/su.h>.
]
[fix safe to fix msvc 2005 level 3 warnings with /w64 by changing many types of
variables internal to fuctions, to be more strongly typed to function
prototypes and returns
[EMAIL PROTECTED]
[fix msvc 2005 level 3 warnings
[EMAIL PROTECTED]
[soa.c: soa_set_sdp() uses now issize_t, too.
[EMAIL PROTECTED]
[su_win32/sofia-sip/su_configure.h: take 3 on defining suitable values for
win32/win64. Now use __w64 as explained by Michael Jerris.
[EMAIL PROTECTED]
[win32/sofia-sip/su_configure.h: using values from <basetsd.h>
[EMAIL PROTECTED]
Always defining isize_t, usize_t as size_t on Windows, issize_t as ssize_t.
Note that <limits.h> with _POSIX_ on VC uses 16-bit values for SSIZE_MAX,
for instance.
]
[sofia-sip/su_types.h: documenting isize_t, issize_t, and usize_t.
[EMAIL PROTECTED]
[Added a workaround for platforms such as VC6 that do not support %z modifier
for printing size/ssize_t (a C99 feature).
[EMAIL PROTECTED]
[Avoid preprocessor warning in tport about redefining version.
[EMAIL PROTECTED]
[Allow test_nta.c to be built without dirent.h interface.
[EMAIL PROTECTED]
[Fixed a segfault handling an invalid tagtype in su_taglist.
[EMAIL PROTECTED]
[Warn users that NUTAG_IDENTITY is not yet implemented.
[EMAIL PROTECTED]
[Updated TODO list.
[EMAIL PROTECTED]
[Added ability to select transport to use by passing NTATAG_TPORT() to
nta_outgoing_*create() functions.
Kai Vehmanen <[EMAIL PROTECTED]>**20060907132931]
[RELEASE: describing nutag_early_answer, isize_t&co.
[EMAIL PROTECTED]
[nua: optionally include answer in 1XX response.
[EMAIL PROTECTED]
The SDP answer is included in non-realiable 1XX response, if
NUTAG_EARLY_ANSWER(1) is included in nua_response() tags, or the user SDP is
specified with SOATAG_USER_SDP() or SOATAG_USER_SDP_STR() in nua_response()
tags.
test_basic_call.c: added test_basic_call_2() for testing the call setup
where 180 contains the answer and the SDP in 200 OK is ignored.
]
[win32/sofia-sip/su_configure.h: fixed SU_INTPTR_T definition. Defining
SIZE_MAX and SSIZE_MAX if needed.
[EMAIL PROTECTED]
[su_tag_inline.h: fixed t_xtra() return type (size_t instead of int).
[EMAIL PROTECTED]
[su: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
Internally using size_t.
]
[nth_client.c: not using su_salloc().
[EMAIL PROTECTED]
[nua: using isize_t, size_t.
[EMAIL PROTECTED]
[nta: using usize_t in tport API.
[EMAIL PROTECTED]
[sres.c: using size_t.
[EMAIL PROTECTED]
[su_configure.h.in, sac-su2.m4: added compatibility types for size parameters.
[EMAIL PROTECTED]
Sofia-SIP 1.12 API passes size in int or unsigned int in numerous places.
Now use typedes isize_t (used instead of int), usize_t (used instead of
unsigned) and issize_t (used instead of int when returning signed size).
With --disable-size-compat, make API to use size_t or ssize_t instead of
int/unsigned int.
win32/sofia-sip/su_configure.h: define suitable values for isize_t, usize_t
and issize_t.
]
[url module: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
[msg module: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
]
[tport module: using isize_t/usize_t/issize_t in API.
[EMAIL PROTECTED]
[soa module: using isize_t/usize_t/issize_t in API.
[EMAIL PROTECTED]
[sdp module: using isize_t in API.
[EMAIL PROTECTED]
[iptsec: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
Fixed basic authentication crashing with too long username/password.
]
[sip module: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
[bnf module: using isize_t and issize_t in API.
[EMAIL PROTECTED]
[http: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
Internally using size_t/ssize_t.
]
[tport module: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
Using internally size_t.
]
[stun: using isize_t, usize_t, and issize_t in API.
[EMAIL PROTECTED]
Internally, this looks like all mess.
]
[tport.c, nta.c. nth_client.c: using msg_addr() sparingly.
[EMAIL PROTECTED]
[ipt: using isize_t, usize_t, issize_t in API.
[EMAIL PROTECTED]
Internally using size_t.
]
[fix msvc warnings for hash_value_t
Michael Jerris <[EMAIL PROTECTED]>**20060904182655]
[Using su_socket() and su_socket_t. Added socket_tag_class, tag_socket_v(),
tag_socket_vr().
[EMAIL PROTECTED]
[su module: use socklen_t where appropriate.
[EMAIL PROTECTED]
su.h, su_localinfo.h (li_addrlen), su_addrinfo.c, su_localinfo.c.
]
[htable.h: allow template user to define hash value type.
[EMAIL PROTECTED]
Added HTABLE_DECLARE_WITH(), HTABLE_PROTOS_WITH(), HTABLE_BODIES_WITH().
]
[msg.c, sofia-sip/msg_addr.h: removed deprecated function msg_addrlen().
[EMAIL PROTECTED]
[sresolv: use sres_socket_t in API instead of plain int.
[EMAIL PROTECTED]
sres_socket_t is typedef to SOCKET or int.
]
[Fixed to in internal nua functions: subsribe->subscribe
[EMAIL PROTECTED]
[soa_static.c: fixed problem of a new offer not including active codec.
[EMAIL PROTECTED]
test_soa.c: added test for dropping codecs from new offer.
Based on patch by Legostayev Denis.
]
[nua module: updated doxygen documentation.
[EMAIL PROTECTED]
[nta_check.c: updated documentation.
[EMAIL PROTECTED]
[tport module: fixed doxygen file entries.
[EMAIL PROTECTED]
[RELEASE: updated.
[EMAIL PROTECTED]
[su_root.c: fixed race condition in su_task_execute().
[EMAIL PROTECTED]
Patch #1552626 by Andrzej Ciarkowski:
While running test_nua example it crashes on
su_task_execute() (called from test_nat_flush()). The
function has race condition - call to
pthread_cond_wait(frame->cond, frame->mutex); may
happen when memory pointed by frame is already
deallocated by the message dispatcher. This is clearly
visible in VC++ Debug builds, as debug version of
Windows allocator overwrites freed memory with some
rubbish, so that mutex and cond both point into
garbage. The frame probably should not be allocated as
a part of the message.
]
[test_soa.c: testing codec negotiation when new codecs are added to previously
rejected media.
[EMAIL PROTECTED]
[test_soa.c: testing SOATAG_AUDIO_AUX().
[EMAIL PROTECTED]
[soa_static.c: added new tag SOATAG_AUDIO_AUX() for listing auxiliary codecs.
[EMAIL PROTECTED]
Auxiliary codecs are now included in m=line even if there is no matching
codec at remote end. They are also ignored when selecting common codecs.
]
[soa_tag.h, soa_tag.c: added SOATAG_AUDIO_AUX().
[EMAIL PROTECTED]
[soa_static.c: always upgrade answer if offer has changed.
[EMAIL PROTECTED]
sdp.c: fixed sdp_media_cmp() - now include m_mode in comparison.
Based on bug report and initial patch submitted by Legostayev Denis.
]
[nta.c, nta.docs: updated stateless callback documentation.
[EMAIL PROTECTED]
Updated documentation of nta_outgoing_tcancel(), too.
]
[sip_util.c: fixed return value for 405.
[EMAIL PROTECTED]
[RELEASE: mention UPDATE bug.
[EMAIL PROTECTED]
[nua_session.c: fixed problem of UAC receiving UPDATE on an early dialog.
[EMAIL PROTECTED]
test_100rel.c: added test for original UAS sending UPDATE.
]
[msrps:// URL scheme
[EMAIL PROTECTED]
[test_sresolv warnings
[EMAIL PROTECTED]
[test_nua_params.c: fixed test of refer_expires.
[EMAIL PROTECTED]
[TAG not-rel-sofia-sip-ua-1.2.1work2
[EMAIL PROTECTED]
Patch bundle hash:
c249cd73348583dbd116b014a4d9dfc5c0d6a220
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel