1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

Silence some warnings.

This commit is contained in:
Josh Elsasser 2007-04-02 20:49:08 +00:00
parent 7e03349f76
commit 9bb7063378

View file

@ -32,7 +32,7 @@
static int realparse( tr_info_t * inf, uint8_t * buf, size_t len ); static int realparse( tr_info_t * inf, uint8_t * buf, size_t len );
static void savedname( char * name, size_t len, const char * hash, static void savedname( char * name, size_t len, const char * hash,
const char * tag ); const char * tag );
static char * readtorrent( const char * path, size_t * len ); static uint8_t * readtorrent( const char * path, size_t * len );
static int savetorrent( const char * hash, const char * tag, static int savetorrent( const char * hash, const char * tag,
const uint8_t * buf, size_t buflen ); const uint8_t * buf, size_t buflen );
static int getfile( char * buf, int size, static int getfile( char * buf, int size,
@ -534,9 +534,9 @@ void tr_metainfoRemoveSaved( const char * hashString, const char * tag )
unlink(file); unlink(file);
} }
char * readtorrent( const char * path, size_t * size ) uint8_t * readtorrent( const char * path, size_t * size )
{ {
char * buf; uint8_t * buf;
struct stat sb; struct stat sb;
FILE * file; FILE * file;