commit 8f660689897a22f13b6b83c3f797c4392d381086
parent be0d4117f31f10eec14de20df693790d31b3c91e
Author: nsz <nszabolcs@gmail.com>
Date: Mon, 20 Apr 2009 21:25:43 +0200
makefile: gcov fixes
Diffstat:
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
@@ -16,12 +16,11 @@ clean:
gcov: inflate.c
gcc -fprofile-arcs -ftest-coverage -pg ${CFLAGS} $<
- ./a.out test.dat > /dev/null
+ ./a.out a.dat > /dev/null
gcov -b $< > /dev/null
gprof a.out > $<.gprof
gcc ${CFLAGS} $<
- valgrind -v --leak-check=yes ./a.out > /dev/null 2> a.valgrind
- grep ERROR a.valgrind >a.err.valgrind
- grep alloc a.valgrind >a.alloc.valgrind
- rm a.out *.gcno *.gcda gmon.out
-
+ valgrind -v --leak-check=yes ./a.out a.dat > /dev/null 2> a.valgrind
+ grep ERROR a.valgrind
+ grep alloc a.valgrind
+ rm a.out a.valgrind *.gcno *.gcda gmon.out
diff --git a/inflate.c b/inflate.c
@@ -327,7 +327,7 @@ int inflate(void *dst, uint *dstlen, const void *src, uint srclen) {
#include <stdlib.h>
void *readall(char *name, uint *len) {
- ulong size = 1 << 22;
+ uint size = 1 << 22;
void *buf;
FILE *in;