Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350068
b: refs/heads/master
c: 91b9880
h: refs/heads/master
v: v3
  • Loading branch information
Paul Gortmaker authored and Arnaldo Carvalho de Melo committed Feb 6, 2013
1 parent db81ef3 commit aefac93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a30a99fb4bb4c9374ea122a2a7c9cd9d26ecdd6
refs/heads/master: 91b988048bea24eae386da3141d247ccea795a81
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/callchain.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ int callchain_cursor_append(struct callchain_cursor *cursor,
struct callchain_cursor_node *node = *cursor->last;

if (!node) {
node = calloc(sizeof(*node), 1);
node = calloc(1, sizeof(*node));
if (!node)
return -ENOMEM;

Expand Down
4 changes: 2 additions & 2 deletions trunk/tools/perf/util/header.c
Original file line number Diff line number Diff line change
Expand Up @@ -2253,7 +2253,7 @@ static int perf_header__adds_write(struct perf_header *header,
if (!nr_sections)
return 0;

feat_sec = p = calloc(sizeof(*feat_sec), nr_sections);
feat_sec = p = calloc(nr_sections, sizeof(*feat_sec));
if (feat_sec == NULL)
return -ENOMEM;

Expand Down Expand Up @@ -2425,7 +2425,7 @@ int perf_header__process_sections(struct perf_header *header, int fd,
if (!nr_sections)
return 0;

feat_sec = sec = calloc(sizeof(*feat_sec), nr_sections);
feat_sec = sec = calloc(nr_sections, sizeof(*feat_sec));
if (!feat_sec)
return -1;

Expand Down

0 comments on commit aefac93

Please sign in to comment.