(trunk daemon) #4301 "strerror used instead of tr_strerror" -- fixed with a patch from taem

This commit is contained in:
Jordan Lee 2011-05-30 15:28:55 +00:00
parent 12270afcb2
commit 4152033360
2 changed files with 2 additions and 3 deletions

View File

@ -13,7 +13,6 @@
#include <errno.h>
#include <stdio.h> /* printf */
#include <stdlib.h> /* exit, atoi */
#include <string.h> /* strerror() */
#include <fcntl.h> /* open */
#include <signal.h>
@ -502,7 +501,7 @@ main( int argc, char ** argv )
pidfile_created = true;
}
else
tr_err( "Unable to save pidfile \"%s\": %s", pid_filename, strerror( errno ) );
tr_err( "Unable to save pidfile \"%s\": %s", pid_filename, tr_strerror( errno ) );
}
if( tr_bencDictFindBool( &settings, TR_PREFS_KEY_RPC_AUTH_REQUIRED, &boolVal ) && boolVal )

View File

@ -76,7 +76,7 @@ watchdir_new_impl( dtr_watchdir * w )
if( i < 0 )
{
tr_err( "Unable to watch \"%s\": %s", w->dir, strerror( errno ) );
tr_err( "Unable to watch \"%s\": %s", w->dir, tr_strerror( errno ) );
}
else if(( odir = opendir( w->dir )))
{