Changeset 28345 for lang/c

Show
Ignore:
Timestamp:
01/13/09 02:41:17 (6 years ago)
Author:
itkz
Message:

remove warning from calling recv() and send() on gcc

Location:
lang/c/librtmp
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/c/librtmp/amf_packet.c

    r28344 r28345  
    225225        raw_data_position += string_length; 
    226226 
    227         property->value = amf_packet_create( 
     227        property->value = amf_packet_analyze( 
    228228            raw_data + raw_data_position, 
    229229            raw_data_size - raw_data_position, 
  • lang/c/librtmp/rtmp.c

    r28238 r28345  
    292292        received_size = recv( 
    293293            client->conn_sock, 
    294             client->received_buffer + client->received_size, 
     294            (void*)(client->received_buffer + client->received_size), 
    295295            RTMP_BUFFER_SIZE - client->received_size, 0); 
    296296if (received_size > 0) { 
     
    310310        if (ret == 1) { 
    311311            sent_size = send( 
    312                 client->conn_sock, client->will_send_buffer, 
     312                client->conn_sock, 
     313                (const void*)client->will_send_buffer, 
    313314                client->will_send_size, 0); 
    314315            if (client->will_send_size - sent_size > 0) {