diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-11-22 22:56:52 +0000 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-11-22 22:56:52 +0000 | 
| commit | 56f260affd91651cb0c44ee14713f7dfa0717ad4 (patch) | |
| tree | bb7e091eb884d3bbfde98135e9032bcd69bae5b8 /storage_xml.c | |
| parent | d75597b0b31f8aa8ca523a3cfa4869e20fca8466 (diff) | |
Some changes to get rid of compiler warnings. (And disabling strict
aliasing because there are too many warnings about it. :-P)
Diffstat (limited to 'storage_xml.c')
| -rw-r--r-- | storage_xml.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/storage_xml.c b/storage_xml.c index 8618c5fe..4c372cde 100644 --- a/storage_xml.c +++ b/storage_xml.c @@ -455,7 +455,7 @@ static storage_status_t xml_save( irc_t *irc, int overwrite )  		   errors, so instead let's use the _find function and  		   return TRUE on write errors. Which means, if we found  		   something, there was an error. :-) */ -		if( g_hash_table_find( acc->nicks, xml_save_nick, (gpointer) fd ) ) +		if( g_hash_table_find( acc->nicks, xml_save_nick, & fd ) )  			goto write_error;  		if( !xml_printf( fd, 1, "</account>\n" ) ) @@ -493,7 +493,7 @@ write_error:  static gboolean xml_save_nick( gpointer key, gpointer value, gpointer data )  { -	return !xml_printf( (int) data, 2, "<buddy handle=\"%s\" nick=\"%s\" />\n", key, value ); +	return !xml_printf( *( (int*) data ), 2, "<buddy handle=\"%s\" nick=\"%s\" />\n", key, value );  }  static storage_status_t xml_remove( const char *nick, const char *password ) | 
