summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'liblog/fake_log_device.c')
-rw-r--r--liblog/fake_log_device.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/liblog/fake_log_device.c b/liblog/fake_log_device.c
index da83a8525..136792ddd 100644
--- a/liblog/fake_log_device.c
+++ b/liblog/fake_log_device.c
@@ -21,18 +21,22 @@
21 */ 21 */
22#include "fake_log_device.h" 22#include "fake_log_device.h"
23 23
24#include <log/logd.h>
25
26#include <stdlib.h>
27#include <string.h>
28#include <ctype.h> 24#include <ctype.h>
29#include <errno.h> 25#include <errno.h>
30#include <fcntl.h> 26#include <fcntl.h>
27#include <stdlib.h>
28#include <string.h>
29
30#include <log/logd.h>
31 31
32#ifdef HAVE_PTHREADS 32#ifdef HAVE_PTHREADS
33#include <pthread.h> 33#include <pthread.h>
34#endif 34#endif
35 35
36#ifndef __unused
37#define __unused __attribute__((__unused__))
38#endif
39
36#define kMaxTagLen 16 /* from the long-dead utils/Log.cpp */ 40#define kMaxTagLen 16 /* from the long-dead utils/Log.cpp */
37 41
38#define kTagSetSize 16 /* arbitrary */ 42#define kTagSetSize 16 /* arbitrary */
@@ -613,7 +617,7 @@ static int logClose(int fd)
613/* 617/*
614 * Open a log output device and return a fake fd. 618 * Open a log output device and return a fake fd.
615 */ 619 */
616static int logOpen(const char* pathName, int flags) 620static int logOpen(const char* pathName, int flags __unused)
617{ 621{
618 LogState *logState; 622 LogState *logState;
619 int fd = -1; 623 int fd = -1;