Merge "Move atrace from the obsolete bzero to memset."
This commit is contained in:
commit
346329b7a7
@ -23,6 +23,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <sys/sendfile.h>
|
#include <sys/sendfile.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
@ -648,7 +649,7 @@ static void dumpTrace()
|
|||||||
uint8_t *in, *out;
|
uint8_t *in, *out;
|
||||||
int result, flush;
|
int result, flush;
|
||||||
|
|
||||||
bzero(&zs, sizeof(zs));
|
memset(&zs, 0, sizeof(zs));
|
||||||
result = deflateInit(&zs, Z_DEFAULT_COMPRESSION);
|
result = deflateInit(&zs, Z_DEFAULT_COMPRESSION);
|
||||||
if (result != Z_OK) {
|
if (result != Z_OK) {
|
||||||
fprintf(stderr, "error initializing zlib: %d\n", result);
|
fprintf(stderr, "error initializing zlib: %d\n", result);
|
||||||
|
Loading…
Reference in New Issue
Block a user