Skip to content

Commit 3f024b6

Browse files
committed
clar: declare summary functions as static
1 parent eabbee0 commit 3f024b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/clar/summary.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <stdio.h>
33
#include <time.h>
44

5-
int clar_summary_close_tag(
5+
static int clar_summary_close_tag(
66
struct clar_summary *summary, const char *tag, int indent)
77
{
88
const char *indt;
@@ -14,12 +14,12 @@ int clar_summary_close_tag(
1414
return fprintf(summary->fp, "%s</%s>\n", indt, tag);
1515
}
1616

17-
int clar_summary_testsuites(struct clar_summary *summary)
17+
static int clar_summary_testsuites(struct clar_summary *summary)
1818
{
1919
return fprintf(summary->fp, "<testsuites>\n");
2020
}
2121

22-
int clar_summary_testsuite(struct clar_summary *summary,
22+
static int clar_summary_testsuite(struct clar_summary *summary,
2323
int idn, const char *name, const char *pkg, time_t timestamp,
2424
double elapsed, int test_count, int fail_count, int error_count)
2525
{
@@ -42,15 +42,15 @@ int clar_summary_testsuite(struct clar_summary *summary,
4242
idn, name, pkg, iso_dt, elapsed, test_count, fail_count, error_count);
4343
}
4444

45-
int clar_summary_testcase(struct clar_summary *summary,
45+
static int clar_summary_testcase(struct clar_summary *summary,
4646
const char *name, const char *classname, double elapsed)
4747
{
4848
return fprintf(summary->fp,
4949
"\t\t<testcase name=\"%s\" classname=\"%s\" time=\"%.2f\">\n",
5050
name, classname, elapsed);
5151
}
5252

53-
int clar_summary_failure(struct clar_summary *summary,
53+
static int clar_summary_failure(struct clar_summary *summary,
5454
const char *type, const char *message, const char *desc)
5555
{
5656
return fprintf(summary->fp,

0 commit comments

Comments
 (0)