Ignore:
Timestamp:
Jun 19, 2008, 2:53:57 AM (14 years ago)
Author:
charles
Message:

minor bencode cleanup: (1) remove unused BENC_NULL (2) make tr_bencInit() a private static function in bencode.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode.c

    r6146 r6224  
    3939#include "utils.h" /* tr_new(), tr_free() */
    4040
    41 const tr_benc BENC_NULL = { 0, { 0 } };
    42 
    4341/**
    4442***
     
    6159    return isContainer(val) || tr_bencIsInt(val) || tr_bencIsString(val);
    6260}
     61
     62static void
     63tr_bencInit( tr_benc * val, int type )
     64{
     65    memset( val, 0, sizeof( *val ) );
     66    val->type = type;
     67}
     68
    6369
    6470/***
Note: See TracChangeset for help on using the changeset viewer.