* $Id$
*/
-#include <assert.h>
#include <errno.h>
#include <stdio.h> /* printf */
#include <stdlib.h> /* exit, atoi */
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/
-#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
static char*
getLockFilename( void )
{
- assert( gl_confdir != NULL );
+ g_assert( gl_confdir != NULL );
return g_build_filename( gl_confdir, "lock", NULL );
}
static char*
getPrefsFilename( void )
{
- assert( gl_confdir != NULL );
+ g_assert( gl_confdir != NULL );
return g_build_filename( gl_confdir, "settings.json", NULL );
}
static char*
getCompat090PrefsFilename( void )
{
- assert( gl_confdir != NULL );
+ g_assert( gl_confdir != NULL );
return g_build_filename( g_get_home_dir( ), ".transmission", "gtk", "prefs.ini", NULL );
}
* $Id$
*/
-#include "assert.h"
#include <string.h> /* strcmp() */
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#ifndef TR_CORE_H
#define TR_CORE_H
-#include <string.h>
-
#include <glib-object.h>
#include <gtk/gtk.h>
*/
#include <ctype.h> /* isspace */
-#include <errno.h>
-#include <stdarg.h>
#include <limits.h> /* USHRT_MAX */
#include <stdlib.h> /* free() */
#include <unistd.h>
#include <ctype.h> /* isxdigit() */
#include <errno.h>
-#include <stdarg.h>
#include <stdlib.h> /* free() */
#include <string.h> /* strcmp() */
#include "transmission.h"
#include "bitfield.h"
-#include "utils.h" /* tr_bitfield */
typedef struct tr_completion
{
#include "transmission.h"
#include "fdlimit.h"
-#include "list.h"
#include "net.h"
#include "platform.h" /* MAX_PATH_LENGTH, TR_PATH_DELIMITER */
#include "session.h"
#include "net.h"
#include "peer-common.h" /* struct peer_request */
#include "publish.h" /* tr_publisher_tag */
-#include "utils.h"
/**
* @addtogroup peers Peers
#define TR_UTILS_H 1
#include <inttypes.h>
-#include <stdarg.h>
#include <stddef.h> /* size_t */
#include <stdio.h> /* FILE* */
#include <string.h> /* memcpy()* */
#include <evdns.h>
#include "transmission.h"
-#include "list.h"
#include "net.h"
#include "ptrarray.h"
#include "session.h"
evdns_shutdown( TRUE );
curl_multi_cleanup( g->multi );
evtimer_del( &g->timer_event );
- tr_ptrArrayDestruct( &g->dns_cache, (TrListForeachFunc)dns_cache_item_free );
+ tr_ptrArrayDestruct( &g->dns_cache, (PtrArrayForeachFunc)dns_cache_item_free );
memset( g, TR_MEMORY_TRASH, sizeof( struct tr_web ) );
tr_free( g );
}
{
tr_free( item->host );
tr_free( item->resolved_host );
+ memset( item, TR_MEMORY_TRASH, sizeof( struct dns_cache_item ) );
tr_free( item );
}
#include "transmission.h"
#include "inout.h"
-#include "list.h"
#include "ratecontrol.h"
#include "torrent.h"
#include "utils.h"