Changeset 1638


Ignore:
Timestamp:
Apr 2, 2007, 8:49:08 PM (15 years ago)
Author:
joshe
Message:

Silence some warnings.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/daemon/daemon/misc.h

    r1635 r1638  
    2626#define TR_DAEMON_MISC_H
    2727
     28#include <sys/types.h>
    2829#include <limits.h>
    2930
  • branches/daemon/daemon/server.c

    r1635 r1638  
    471471    {
    472472        /* XXX detect duplicates and return a message indicating so */
    473         tor = torrent_add_data( val->val.s.s, val->val.s.i, dir, start );
     473        tor = torrent_add_data( ( uint8_t * )val->val.s.s, val->val.s.i,
     474                                dir, start );
    474475    }
    475476    else
  • branches/daemon/libtransmission/metainfo.c

    r1634 r1638  
    3333static void savedname( char * name, size_t len, const char * hash,
    3434                       const char * tag );
    35 static char * readtorrent( const char * path, size_t * len );
     35static uint8_t * readtorrent( const char * path, size_t * len );
    3636static int savetorrent( const char * hash, const char * tag,
    3737                        const uint8_t * buf, size_t buflen );
     
    535535}
    536536
    537 char * readtorrent( const char * path, size_t * size )
    538 {
    539     char       * buf;
     537uint8_t * readtorrent( const char * path, size_t * size )
     538{
     539    uint8_t    * buf;
    540540    struct stat  sb;
    541541    FILE       * file;
  • trunk/libtransmission/metainfo.c

    r1636 r1638  
    3333static void savedname( char * name, size_t len, const char * hash,
    3434                       const char * tag );
    35 static char * readtorrent( const char * path, size_t * len );
     35static uint8_t * readtorrent( const char * path, size_t * len );
    3636static int savetorrent( const char * hash, const char * tag,
    3737                        const uint8_t * buf, size_t buflen );
     
    535535}
    536536
    537 char * readtorrent( const char * path, size_t * size )
    538 {
    539     char       * buf;
     537uint8_t * readtorrent( const char * path, size_t * size )
     538{
     539    uint8_t    * buf;
    540540    struct stat  sb;
    541541    FILE       * file;
Note: See TracChangeset for help on using the changeset viewer.