projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
117cc6c
)
ccanlint: fix usage of static funcs
author
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 6 Dec 2010 02:18:18 +0000
(12:48 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 6 Dec 2010 02:18:18 +0000
(12:48 +1030)
Out-by-one error had us using character prior to declaration, eg, in
"static int *foo" we use "*foo". This seems to compile, but is weird.
tools/ccanlint/tests/examples_compile.c
patch
|
blob
|
history
diff --git
a/tools/ccanlint/tests/examples_compile.c
b/tools/ccanlint/tests/examples_compile.c
index 7cee7795b7c8fef9cd532437e3d4977b6bce1fda..87a6ad02e7376bb779dc661ee891b453a305b18f 100644
(file)
--- a/
tools/ccanlint/tests/examples_compile.c
+++ b/
tools/ccanlint/tests/examples_compile.c
@@
-154,7
+154,7
@@
static char *add_func(char *others, const char *line)
}
return talloc_asprintf_append(others, "printf(\"%%p\", %.*s);\n",
- (unsigned)(end - p
+ 1), p
);
+ (unsigned)(end - p
), p+1
);
}
static void strip_leading_whitespace(char **lines)