Skip to content

Commit c43a15d

Browse files
committed
tlshd: Externally visible function definition with no forward declaration
There are no call sites of "usage()" outside of main.c, so make it static. Reported-by: Parfait 9.0 (#2141) Fixes: 175030f ("fix handling of command like options") Signed-off-by: Chuck Lever <[email protected]>
1 parent 68985f5 commit c43a15d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tlshd/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ static const struct option longopts[] = {
5656
{ NULL, 0, NULL, 0 }
5757
};
5858

59-
void usage(char *progname) {
60-
fprintf(stderr, "usage: %s [-chsv]\n", progname);
59+
static void usage(char *progname)
60+
{
61+
fprintf(stderr, "usage: %s [-chsv]\n", progname);
6162
}
6263

6364
int main(int argc, char **argv)

0 commit comments

Comments
 (0)