Changeset 7759
- Timestamp:
- Jan 20, 2009, 2:03:09 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/rpcimpl.c
r7752 r7759 30 30 #define TR_N_ELEMENTS( ary ) ( sizeof( ary ) / sizeof( *ary ) ) 31 31 32 #if 0 33 #define dbgmsg(fmt, ...) \ 34 do { \ 35 fprintf( stderr, "%s:%d"#fmt, __FILE__, __LINE__, __VA_ARGS__ ); \ 36 fprintf( stderr, "\n" ); \ 37 } while( 0 ) 38 #else 32 39 #define dbgmsg( ... ) \ 33 40 do { \ … … 35 42 tr_deepLog( __FILE__, __LINE__, "RPC", __VA_ARGS__ ); \ 36 43 } while( 0 ) 44 #endif 37 45 38 46 … … 923 931 924 932 static void 933 noop_response_callback( tr_session * session UNUSED, 934 const char * response UNUSED, 935 size_t response_len UNUSED, 936 void * user_data UNUSED ) 937 { 938 } 939 940 static void 925 941 request_exec( tr_session * session, 926 942 tr_benc * request, … … 932 948 tr_benc * args_in = tr_bencDictFind( request, "arguments" ); 933 949 const char * result = NULL; 950 951 if( callback == NULL ) 952 callback = noop_response_callback; 934 953 935 954 /* parse the request */
Note: See TracChangeset
for help on using the changeset viewer.