Skip to content

Commit e6220c2

Browse files
committed
mkcomposefs: Move extern outside of function definiton
This should hopefully work with older clang-format too. Signed-off-by: Colin Walters <[email protected]>
1 parent 2127799 commit e6220c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/mkcomposefs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,8 @@ static int LLVMFuzzerTestOneInput(uint8_t *buf, size_t len)
786786
return 0;
787787
}
788788

789+
extern void HF_ITER(uint8_t **buf, size_t *len);
790+
789791
int main(int argc, char **argv)
790792
{
791793
if (argc > 1) {
@@ -807,7 +809,6 @@ int main(int argc, char **argv)
807809
LLVMFuzzerTestOneInput((void *)buf, len);
808810
return 0;
809811
}
810-
extern void HF_ITER(uint8_t **buf, size_t *len);
811812
for (;;) {
812813
size_t len;
813814
uint8_t *buf;

0 commit comments

Comments
 (0)