diff options
Diffstat (limited to 'debian/patches/bugfix/all/tools-perf-pmu-events-fix-reproducibility.patch')
-rw-r--r-- | debian/patches/bugfix/all/tools-perf-pmu-events-fix-reproducibility.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/debian/patches/bugfix/all/tools-perf-pmu-events-fix-reproducibility.patch b/debian/patches/bugfix/all/tools-perf-pmu-events-fix-reproducibility.patch index c0cf9b073..f6deb46bf 100644 --- a/debian/patches/bugfix/all/tools-perf-pmu-events-fix-reproducibility.patch +++ b/debian/patches/bugfix/all/tools-perf-pmu-events-fix-reproducibility.patch @@ -38,7 +38,7 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk> int verbose; char *prog; -@@ -971,6 +983,78 @@ +@@ -971,6 +983,78 @@ static int get_maxfds(void) */ static FILE *eventsfp; static char *mapfile; @@ -109,7 +109,7 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk> + +out: + for (i = 0; i < state.n; i++) -+ free(state.entries[i].fpath); ++ free((char *)state.entries[i].fpath); + free(state.entries);; + + return rc; @@ -117,7 +117,7 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk> static int is_leaf_dir(const char *fpath) { -@@ -1023,19 +1107,19 @@ +@@ -1023,19 +1107,19 @@ static int is_json_file(const char *name return 0; } @@ -140,7 +140,7 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk> int typeflag, struct FTW *ftwbuf) { char *tblname, *bname; -@@ -1065,9 +1149,9 @@ +@@ -1065,9 +1149,9 @@ static int process_one_file(const char * } else bname = (char *) fpath + ftwbuf->base; @@ -152,7 +152,7 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk> /* base dir or too deep */ if (level == 0 || level > 4) -@@ -1241,21 +1325,21 @@ +@@ -1241,21 +1325,21 @@ int main(int argc, char *argv[]) */ maxfds = get_maxfds(); |