Changeset 11590


Ignore:
Timestamp:
Dec 24, 2010, 9:11:23 AM (11 years ago)
Author:
charles
Message:

(trunk daemon) #3836 "libevent2 support" -- fix libevent #includes in the daemon/ directory

Location:
trunk/daemon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/daemon.c

    r11254 r11590  
    2626#include <unistd.h> /* daemon */
    2727
    28 #include <event.h>
     28#include <event2/buffer.h>
    2929
    3030#include <libtransmission/transmission.h>
  • trunk/daemon/remote.c

    r11582 r11590  
    2525#endif
    2626
    27 #include <event.h>
     27#include <event2/buffer.h>
    2828
    2929#define CURL_DISABLE_TYPECHECK /* otherwise -Wunreachable-code goes insane */
     
    17241724        switch( response ) {
    17251725            case 200:
    1726                 status |= processResponse( rpcurl, EVBUFFER_DATA(buf), EVBUFFER_LENGTH(buf) );
     1726                status |= processResponse( rpcurl, (const char*) evbuffer_pullup( buf, -1 ), evbuffer_get_length( buf ) );
    17271727                break;
    17281728            case 409:
     
    17361736                break;
    17371737            default:
    1738                 fprintf( stderr, "Unexpected response: %s\n", (char*)EVBUFFER_DATA(buf) );
     1738                fprintf( stderr, "Unexpected response: %s\n", evbuffer_pullup( buf, -1 ) );
    17391739                status |= EXIT_FAILURE;
    17401740                break;
  • trunk/daemon/watch.c

    r10783 r11590  
    1717  #include <sys/types.h> /* stat */
    1818  #include <sys/stat.h> /* stat */
    19   #include <event.h> /* evbuffer */
     19  #include <event2/buffer.h> /* evbuffer */
    2020#endif
    2121
Note: See TracChangeset for help on using the changeset viewer.