diff options
author | Edwin Vane <edwin.vane@intel.com> | 2012-08-13 12:55:07 -0400 |
---|---|---|
committer | Edwin Vane <edwin.vane@intel.com> | 2012-08-13 12:59:36 -0400 |
commit | 80b221cb22f37446e76829d2dd0e8953a32f3bda (patch) | |
tree | 70e7d14511a47645b761ad7b0c6bf861ea083b24 /logcat | |
parent | 605f8706c88b2cd5d024b0a6b7253a78d968ba72 (diff) | |
download | system_core-80b221cb22f37446e76829d2dd0e8953a32f3bda.zip system_core-80b221cb22f37446e76829d2dd0e8953a32f3bda.tar.gz system_core-80b221cb22f37446e76829d2dd0e8953a32f3bda.tar.bz2 |
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 <edwin.vane@intel.com>
Reviewed-by: Ariel J Bernal <ariel.j.bernal@intel.com>
Diffstat (limited to 'logcat')
-rw-r--r-- | logcat/logcat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp index b71ce86..d3b5ed0 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() |