mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
(trunk libT) fix implicit pointer conversion error when #included in C++
This commit is contained in:
parent
6d008257c8
commit
560ecbe9bb
1 changed files with 5 additions and 3 deletions
|
@ -436,10 +436,12 @@ struct tm * tr_localtime_r( const time_t *_clock, struct tm *_result );
|
|||
int tr_moveFile( const char * oldpath, const char * newpath,
|
||||
tr_bool * renamed ) TR_GNUC_NONNULL(1,2);
|
||||
|
||||
static TR_INLINE void tr_removeElementFromArray( void * array, int index_to_remove,
|
||||
size_t sizeof_element, size_t nmemb )
|
||||
static TR_INLINE void tr_removeElementFromArray( void * array,
|
||||
int index_to_remove,
|
||||
size_t sizeof_element,
|
||||
size_t nmemb )
|
||||
{
|
||||
char * a = array;
|
||||
char * a = (char*) array;
|
||||
|
||||
memmove( a + sizeof_element * index_to_remove,
|
||||
a + sizeof_element * ( index_to_remove + 1 ),
|
||||
|
|
Loading…
Reference in a new issue