projects
/
ccan
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ccanlint: Add -k option to keep results.
[ccan]
/
tools
/
ccanlint
/
tests
/
idempotent.c
diff --git
a/tools/ccanlint/tests/idempotent.c
b/tools/ccanlint/tests/idempotent.c
index 924f5bea3c7d6b53c424ba7cff6fafe7897aadf2..95040cf62b09b2f012d77d8b3683f6a9712d79e9 100644
(file)
--- a/
tools/ccanlint/tests/idempotent.c
+++ b/
tools/ccanlint/tests/idempotent.c
@@
-112,7
+112,9
@@
static char *report_idem(struct ccan_file *f, char *sofar)
return sofar;
}
return sofar;
}
-static void *check_idempotent(struct manifest *m)
+static void *check_idempotent(struct manifest *m,
+ bool keep,
+ unsigned int *timeleft)
{
struct ccan_file *f;
char *report = NULL;
{
struct ccan_file *f;
char *report = NULL;
@@
-132,10
+134,11
@@
static const char *describe_idempotent(struct manifest *m, void *check_result)
}
struct ccanlint idempotent = {
}
struct ccanlint idempotent = {
- .name = "Headers are #ifndef/#define idempotent wrapped",
+ .key = "idempotent",
+ .name = "Module headers are #ifndef/#define wrapped",
.total_score = 1,
.check = check_idempotent,
.describe = describe_idempotent,
};
.total_score = 1,
.check = check_idempotent,
.describe = describe_idempotent,
};
-REGISTER_TEST(idempotent,
&trailing_whitespace,
NULL);
+REGISTER_TEST(idempotent, NULL);