Changeset 2c1edcf1f486e4f968e8fa499508c4b7b620e12e
- Timestamp:
- 17/07/05 23:21:04
(3 years ago)
- Author:
- Cyril Deguet <asmax@videolan.org>
- git-committer:
- Cyril Deguet <asmax@videolan.org> 1121635264 +0000
- git-parent:
[80ee9c71d258094b2b7a83ddeb58c2d13216b64c]
- git-author:
- Cyril Deguet <asmax@videolan.org> 1121635264 +0000
- Message:
* all: compilation fix with vc7.1 compiler, and removed a bunch of warnings (there are still many warnings about size_t/int mismatch though...)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| ra2aa6d7 |
r2c1edcf |
|
| 31 | 31 | #elif defined( WIN32 ) |
|---|
| 32 | 32 | # include <winsock2.h> |
|---|
| | 33 | # include <ws2tcpip.h> |
|---|
| 33 | 34 | #elif HAVE_SYS_SOCKET_H |
|---|
| 34 | 35 | # include <sys/socket.h> |
|---|
| r4ee9175 |
r2c1edcf |
|
| 537 | 537 | |
|---|
| 538 | 538 | /* Dynamic array handling: realloc array, move data, increment position */ |
|---|
| 539 | | #if defined( _MSC_VER ) |
|---|
| | 539 | #if defined( _MSC_VER ) && _MSC_VER < 1300 |
|---|
| 540 | 540 | # define VLCCVP (void**) /* Work-around for broken compiler */ |
|---|
| 541 | 541 | #else |
|---|
| rfe087a3 |
r2c1edcf |
|
| 476 | 476 | { |
|---|
| 477 | 477 | input_thread_t *p_input = (input_thread_t*)p_this; |
|---|
| 478 | | vlc_value_t val; |
|---|
| 479 | | int i_rate; |
|---|
| 480 | 478 | |
|---|
| 481 | 479 | /* Problem with this way: the "rate" variable is update after the input thread do the change */ |
|---|
| rfe087a3 |
r2c1edcf |
|
| 248 | 248 | char * psz_parser; |
|---|
| 249 | 249 | char * psz_control; |
|---|
| 250 | | char * psz_language; |
|---|
| 251 | 250 | vlc_bool_t b_exit = VLC_FALSE; |
|---|
| 252 | 251 | vlc_t * p_vlc = vlc_current_object( i_object ); |
|---|
| … | … | |
| 254 | 253 | playlist_t *p_playlist; |
|---|
| 255 | 254 | vlc_value_t val; |
|---|
| | 255 | #ifndef WIN32 |
|---|
| | 256 | char * psz_language; |
|---|
| | 257 | #endif |
|---|
| 256 | 258 | |
|---|
| 257 | 259 | if( !p_vlc ) |
|---|
| … | … | |
| 2035 | 2037 | char *psz_bra = NULL, *psz_type = NULL, *psz_ket = NULL; |
|---|
| 2036 | 2038 | char *psz_suf = "", *psz_prefix = NULL; |
|---|
| 2037 | | int i; |
|---|
| | 2039 | size_t i; |
|---|
| 2038 | 2040 | |
|---|
| 2039 | 2041 | /* Skip deprecated options */ |
|---|
| … | … | |
| 2168 | 2170 | { |
|---|
| 2169 | 2171 | char *psz_parser, *psz_word; |
|---|
| 2170 | | int i_end = strlen( psz_text ); |
|---|
| | 2172 | size_t i_end = strlen( psz_text ); |
|---|
| 2171 | 2173 | |
|---|
| 2172 | 2174 | /* If the remaining text fits in a line, print it. */ |
|---|
| 2173 | | if( i_end <= i_width ) |
|---|
| | 2175 | if( i_end <= (size_t)i_width ) |
|---|
| 2174 | 2176 | { |
|---|
| 2175 | 2177 | fprintf( stdout, "%s\n", psz_text ); |
|---|
| rfd8f4e2 |
r2c1edcf |
|
| 501 | 501 | char psz_servbuf[6], *psz_serv; |
|---|
| 502 | 502 | int i_servlen, i_val; |
|---|
| 503 | | |
|---|
| 504 | | flags |= NI_NUMERICSERV; |
|---|
| 505 | | if( portnum != NULL ) |
|---|
| 506 | | { |
|---|
| 507 | | psz_serv = psz_servbuf; |
|---|
| 508 | | i_servlen = sizeof( psz_servbuf ); |
|---|
| 509 | | } |
|---|
| 510 | | else |
|---|
| 511 | | { |
|---|
| 512 | | psz_serv = NULL; |
|---|
| 513 | | i_servlen = 0; |
|---|
| 514 | | } |
|---|
| 515 | 503 | #ifdef WIN32 |
|---|
| 516 | 504 | /* |
|---|
| … | … | |
| 522 | 510 | HINSTANCE wship6_module; |
|---|
| 523 | 511 | GETNAMEINFO ws2_getnameinfo; |
|---|
| 524 | | |
|---|
| | 512 | #endif |
|---|
| | 513 | |
|---|
| | 514 | flags |= NI_NUMERICSERV; |
|---|
| | 515 | if( portnum != NULL ) |
|---|
| | 516 | { |
|---|
| | 517 | psz_serv = psz_servbuf; |
|---|
| | 518 | i_servlen = sizeof( psz_servbuf ); |
|---|
| | 519 | } |
|---|
| | 520 | else |
|---|
| | 521 | { |
|---|
| | 522 | psz_serv = NULL; |
|---|
| | 523 | i_servlen = 0; |
|---|
| | 524 | } |
|---|
| | 525 | #ifdef WIN32 |
|---|
| 525 | 526 | wship6_module = LoadLibrary( "wship6.dll" ); |
|---|
| 526 | 527 | if( wship6_module != NULL ) |
|---|
| … | … | |
| 555 | 556 | vlc_mutex_lock( lock.p_address ); |
|---|
| 556 | 557 | #else |
|---|
| 557 | | # warning FIXME : This is not thread-safe! |
|---|
| | 558 | //# warning FIXME : This is not thread-safe! |
|---|
| 558 | 559 | #endif |
|---|
| 559 | 560 | i_val = __getnameinfo( sa, salen, host, hostlen, psz_serv, i_servlen, |
|---|
| r9d31c40 |
r2c1edcf |
|
| 43 | 43 | # undef sockaddr_storage |
|---|
| 44 | 44 | # endif |
|---|
| | 45 | # include <io.h> |
|---|
| 45 | 46 | # include <winsock2.h> |
|---|
| 46 | 47 | # include <ws2tcpip.h> |
|---|
| … | … | |
| 129 | 130 | { |
|---|
| 130 | 131 | i_val = PROTECTION_LEVEL_UNRESTRICTED; |
|---|
| 131 | | setsockopt( fd, IPPROTO_IPV6, IPV6_PROTECTION_LEVEL, &i_val, |
|---|
| 132 | | sizeof( i_val ) ); |
|---|
| | 132 | setsockopt( fd, IPPROTO_IPV6, IPV6_PROTECTION_LEVEL, |
|---|
| | 133 | (const char*)&i_val, sizeof( i_val ) ); |
|---|
| 133 | 134 | } |
|---|
| 134 | 135 | # else |
|---|
| r90d3d34 |
r2c1edcf |
|
| 67 | 67 | const char *psz_ip ) |
|---|
| 68 | 68 | { |
|---|
| 69 | | struct addrinfo hints = { }, *res; |
|---|
| | 69 | struct addrinfo hints, *res; |
|---|
| 70 | 70 | int i_family; |
|---|
| 71 | 71 | |
|---|
| r3de41d4 |
r2c1edcf |
|
| 353 | 353 | } |
|---|
| 354 | 354 | else |
|---|
| 355 | | b_ipv6 == (strchr( p_method->psz_address, ':' ) != NULL); |
|---|
| | 355 | b_ipv6 = (strchr( p_method->psz_address, ':' ) != NULL); |
|---|
| 356 | 356 | |
|---|
| 357 | 357 | msg_Dbg( p_sap, "using SAP address: %s", p_method->psz_address); |
|---|