From 02336bbc250b6dde8d1d49d708df3cd318da1c1c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 28 May 2009 13:21:42 +0930 Subject: [PATCH] Joey's template fixes. --- tools/ccanlint/has_tests.c | 7 ++++--- tools/ccanlint/no_info.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/ccanlint/has_tests.c b/tools/ccanlint/has_tests.c index 08668695..efea3c06 100644 --- a/tools/ccanlint/has_tests.c +++ b/tools/ccanlint/has_tests.c @@ -97,9 +97,9 @@ static void handle_no_tests(struct manifest *m, void *check_result) fputs("#include \"tap/tap.h\"\n", run); fputs("\n", run); - fputs("int main(int argc, char *argv[])\n", run); + fputs("int main(void)\n", run); fputs("{\n", run); - fputs("\t/* This is how many tests you plan to run\n", run); + fputs("\t/* This is how many tests you plan to run */\n", run); fputs("\tplan_tests(3);\n", run); fputs("\n", run); fputs("\t/* Simple thing we expect to succeed */\n", run); @@ -116,7 +116,8 @@ static void handle_no_tests(struct manifest *m, void *check_result) fputs("#endif\n", run); fputs("\n", run); fputs("\t/* This exits depending on whether all tests passed */\n", run); - fputs("\return exit_status()\n", run); + fputs("\treturn exit_status();\n", run); + fputs("}\n", run); fclose(run); } diff --git a/tools/ccanlint/no_info.c b/tools/ccanlint/no_info.c index d641003c..1ac925cf 100644 --- a/tools/ccanlint/no_info.c +++ b/tools/ccanlint/no_info.c @@ -40,7 +40,7 @@ static const char template[] = " */\n" "int main(int argc, char *argv[])\n" "{\n" - " /* Expect exactly one argument\n" + " /* Expect exactly one argument */\n" " if (argc != 2)\n" " return 1;\n" "\n" -- 2.39.2