Changeset 56f260a
- Timestamp:
- 2007-11-22T22:56:52Z (17 years ago)
- Branches:
- master
- Children:
- df6d1da
- Parents:
- d75597b
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
rd75597b r56f260a 137 137 echo '#define DEBUG' >> config.h 138 138 else 139 [ -z "$CFLAGS" ] && CFLAGS= -O3139 [ -z "$CFLAGS" ] && CFLAGS="-O2 -fno-strict-aliasing" 140 140 fi 141 141 -
lib/ssl_gnutls.c
rd75597b r56f260a 35 35 36 36 static gboolean initialized = FALSE; 37 38 #include <limits.h> 39 40 #if defined(ULONG_MAX) && ULONG_MAX > 4294967295UL 41 #define GNUTLS_STUPID_CAST (long) 42 #else 43 #define GNUTLS_STUPID_CAST (int) 44 #endif 37 45 38 46 struct scd … … 125 133 126 134 sock_make_nonblocking( conn->fd ); 127 gnutls_transport_set_ptr( conn->session, (gnutls_transport_ptr) conn->fd );135 gnutls_transport_set_ptr( conn->session, (gnutls_transport_ptr) GNUTLS_STUPID_CAST conn->fd ); 128 136 129 137 return ssl_handshake( data, source, cond ); -
protocols/nogaim.c
rd75597b r56f260a 699 699 700 700 if( set_getbool( &ic->irc->set, "debug" ) ) 701 imcb_log( ic, "You were removed from conversation 0x%x", (int)c );701 imcb_log( ic, "You were removed from conversation %p", c ); 702 702 703 703 if( c ) … … 755 755 else 756 756 { 757 imcb_log( ic, "Message from/to conversation %s@ 0x%x (unknown conv/user): %s", who, (int)c, wrapped );757 imcb_log( ic, "Message from/to conversation %s@%p (unknown conv/user): %s", who, c, wrapped ); 758 758 } 759 759 g_free( wrapped ); … … 803 803 804 804 if( set_getbool( &ic->irc->set, "debug" ) ) 805 imcb_log( ic, "Creating new conversation: (id= 0x%x,handle=%s)", (int)c, handle );805 imcb_log( ic, "Creating new conversation: (id=%p,handle=%s)", c, handle ); 806 806 807 807 return c; … … 817 817 818 818 if( set_getbool( &b->ic->irc->set, "debug" ) ) 819 imcb_log( b->ic, "User %s added to conversation 0x%x", handle, (int)b );819 imcb_log( b->ic, "User %s added to conversation %p", handle, b ); 820 820 821 821 /* It might be yourself! */ … … 852 852 853 853 if( set_getbool( &b->ic->irc->set, "debug" ) ) 854 imcb_log( b->ic, "User %s removed from conversation 0x%x (%s)", handle, (int)b, reason ? reason : "" );854 imcb_log( b->ic, "User %s removed from conversation %p (%s)", handle, b, reason ? reason : "" ); 855 855 856 856 /* It might be yourself! */ -
root_commands.c
rd75597b r56f260a 745 745 static void cmd_set( irc_t *irc, char **cmd ) 746 746 { 747 char *set_name ;747 char *set_name = NULL; 748 748 749 749 if( cmd[1] && cmd[2] ) … … 765 765 } 766 766 } 767 if( cmd[1]) /* else 'forgotten' on purpose.. Must show new value after changing */767 if( set_name ) /* else 'forgotten' on purpose.. Must show new value after changing */ 768 768 { 769 769 char *s = set_getstr( &irc->set, set_name ); -
storage_xml.c
rd75597b r56f260a 456 456 return TRUE on write errors. Which means, if we found 457 457 something, there was an error. :-) */ 458 if( g_hash_table_find( acc->nicks, xml_save_nick, (gpointer)fd ) )458 if( g_hash_table_find( acc->nicks, xml_save_nick, & fd ) ) 459 459 goto write_error; 460 460 … … 494 494 static gboolean xml_save_nick( gpointer key, gpointer value, gpointer data ) 495 495 { 496 return !xml_printf( (int) data, 2, "<buddy handle=\"%s\" nick=\"%s\" />\n", key, value );496 return !xml_printf( *( (int*) data ), 2, "<buddy handle=\"%s\" nick=\"%s\" />\n", key, value ); 497 497 } 498 498
Note: See TracChangeset
for help on using the changeset viewer.