From 4152033360490eb52574a4cb13bebd3b77b5f13e Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Mon, 30 May 2011 15:28:55 +0000 Subject: [PATCH] (trunk daemon) #4301 "strerror used instead of tr_strerror" -- fixed with a patch from taem --- daemon/daemon.c | 3 +-- daemon/watch.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/daemon/daemon.c b/daemon/daemon.c index 175fe7934..3eafcb479 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -13,7 +13,6 @@ #include #include /* printf */ #include /* exit, atoi */ -#include /* strerror() */ #include /* open */ #include @@ -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 ) diff --git a/daemon/watch.c b/daemon/watch.c index af0239576..a7971a31a 100644 --- a/daemon/watch.c +++ b/daemon/watch.c @@ -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 ))) { -- 2.40.0