diff options
-rw-r--r-- | tools/gator/daemon/Android.mk | 2 | ||||
-rw-r--r-- | tools/gator/daemon/Fifo.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/gator/daemon/Android.mk b/tools/gator/daemon/Android.mk index 44c069cc7e24..baa783e0da08 100644 --- a/tools/gator/daemon/Android.mk +++ b/tools/gator/daemon/Android.mk @@ -3,7 +3,7 @@ include $(CLEAR_VARS) XML_H := $(shell cd $(LOCAL_PATH) && make events_xml.h defaults_xml.h) -LOCAL_CFLAGS += -Wall -O3 -mthumb-interwork -fno-exceptions -pthread -DETCDIR=\"/etc\" -Ilibsensors +LOCAL_CFLAGS += -Wall -O3 -fno-exceptions -pthread -DETCDIR=\"/etc\" -Ilibsensors LOCAL_SRC_FILES := \ Buffer.cpp \ diff --git a/tools/gator/daemon/Fifo.cpp b/tools/gator/daemon/Fifo.cpp index f672e92a6807..51ac1e5c961b 100644 --- a/tools/gator/daemon/Fifo.cpp +++ b/tools/gator/daemon/Fifo.cpp @@ -23,7 +23,7 @@ Fifo::Fifo(int singleBufferSize, int bufferSize, sem_t* readerSem) { mWrapThreshold = bufferSize; mSingleBufferSize = singleBufferSize; mReaderSem = readerSem; - mBuffer = (char*)valloc(bufferSize + singleBufferSize); + mBuffer = (char*)malloc(bufferSize + singleBufferSize); mEnd = false; if (mBuffer == NULL) { |