summaryrefslogtreecommitdiffstats
path: root/cmds/atrace
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-01-25 08:35:20 -0800
committerElliott Hughes <enh@google.com>2015-01-25 08:35:20 -0800
commit3da5d235dab9469ccec567c4ebbb5206f4558a18 (patch)
tree9c4d22c613c617097793a0cd9e85b5afe7ffb787 /cmds/atrace
parent8f3ade0c9ab52a1e4f13d6ff1922dd98e3ccdbcc (diff)
downloadframeworks_native-3da5d235dab9469ccec567c4ebbb5206f4558a18.zip
frameworks_native-3da5d235dab9469ccec567c4ebbb5206f4558a18.tar.gz
frameworks_native-3da5d235dab9469ccec567c4ebbb5206f4558a18.tar.bz2
Move atrace from the obsolete bzero to memset.
(This file wasn't including <strings.h> for bzero or <string.h> for memset.) Change-Id: Icef0e0dbfd36ebd21058cfd8c747e0a17aee8308
Diffstat (limited to 'cmds/atrace')
-rw-r--r--cmds/atrace/atrace.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp
index 9e5c910..010d9ce 100644
--- a/cmds/atrace/atrace.cpp
+++ b/cmds/atrace/atrace.cpp
@@ -23,6 +23,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/sendfile.h>
#include <time.h>
#include <zlib.h>
@@ -648,7 +649,7 @@ static void dumpTrace()
uint8_t *in, *out;
int result, flush;
- bzero(&zs, sizeof(zs));
+ memset(&zs, 0, sizeof(zs));
result = deflateInit(&zs, Z_DEFAULT_COMPRESSION);
if (result != Z_OK) {
fprintf(stderr, "error initializing zlib: %d\n", result);