projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove arch/${ARCH}/include/asm/errno.h
[oweals/u-boot.git]
/
tools
/
proftool.c
diff --git
a/tools/proftool.c
b/tools/proftool.c
index 348295198cd3d061dd8fc83baa10a6040f25e338..ddf870f66ee7d732a0338e28fb429185476b78b0 100644
(file)
--- a/
tools/proftool.c
+++ b/
tools/proftool.c
@@
-16,6
+16,7
@@
#include <string.h>
#include <unistd.h>
#include <sys/param.h>
#include <string.h>
#include <unistd.h>
#include <sys/param.h>
+#include <sys/types.h>
#include <compiler.h>
#include <trace.h>
#include <compiler.h>
#include <trace.h>
@@
-431,9
+432,10
@@
static int read_trace_config(FILE *fin)
err = regcomp(&line->regex, tok, REG_NOSUB);
if (err) {
err = regcomp(&line->regex, tok, REG_NOSUB);
if (err) {
+ int r = regex_report_error(&line->regex, err,
+ "compile", tok);
free(line);
free(line);
- return regex_report_error(&line->regex, err, "compile",
- tok);
+ return r;
}
/* link this new one to the end of the list */
}
/* link this new one to the end of the list */