From 80b221cb22f37446e76829d2dd0e8953a32f3bda Mon Sep 17 00:00:00 2001 From: Edwin Vane Date: Mon, 13 Aug 2012 12:55:07 -0400 Subject: [PATCH] Fixed an unused param warning in logcat Changed a function to actually use its parameter instead of a global variable. All callers of the function pass the global variable as an argument anyway so behaviour is unchanged. Change-Id: Ib84d45c17d2213c4d441bf2f423feca14e7aa2f4 Author: Edwin Vane Reviewed-by: Ariel J Bernal --- logcat/logcat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp index b71ce86a4..d3b5ed0b9 100644 --- a/logcat/logcat.cpp +++ b/logcat/logcat.cpp @@ -101,7 +101,7 @@ static EventTagMap* g_eventTagMap = NULL; static int openLogFile (const char *pathname) { - return open(g_outputFileName, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); + return open(pathname, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); } static void rotateLogs()