summaryrefslogtreecommitdiff
path: root/tests/iptables/qtaguid/Android.mk
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2016-09-28 17:03:31 -0700
committerChenbo Feng <fengc@google.com>2016-09-29 12:39:12 -0700
commit31399ff50100414c07b42d50691954ae9c027fbd (patch)
treeceed008990e21f1c689d2d7e0e49334a21461915 /tests/iptables/qtaguid/Android.mk
parent2e363e48f8b0f6c11ad3184d9c010052605b480d (diff)
downloadextras-31399ff50100414c07b42d50691954ae9c027fbd.tar.gz
qtaguid replace asprintf with libbase StringPrintf
use libbase function android::base::StringPrintf for string manipulation. Avoid free the char array at the end. Changed the program logic of building the match template to make it more concise. Test: manually tested on angler device. build and sync this module into device and run adb shell ./data/nativetest64/socketTag/socketTag Change-Id: Ic93ac4e91e87337acb2e12efadeb57833c36c95e
Diffstat (limited to 'tests/iptables/qtaguid/Android.mk')
-rw-r--r--tests/iptables/qtaguid/Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/iptables/qtaguid/Android.mk b/tests/iptables/qtaguid/Android.mk
index b92b662a..6328883d 100644
--- a/tests/iptables/qtaguid/Android.mk
+++ b/tests/iptables/qtaguid/Android.mk
@@ -20,7 +20,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
LOCAL_MODULE := socketTag
LOCAL_SRC_FILES := socketTag.cpp
-LOCAL_SHARED_LIBRARIES += libcutils libutils liblog
+LOCAL_SHARED_LIBRARIES += libcutils libutils liblog libbase
LOCAL_STATIC_LIBRARIES += libtestUtil
LOCAL_C_INCLUDES += system/extras/tests/include
LOCAL_CFLAGS += -fno-strict-aliasing