From 509c722936a75f5b7823d871a3010c1f1ae11f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Trung=20L=C3=AA?= <8@tle.id.au> Date: Tue, 1 Apr 2025 10:06:56 +1100 Subject: [PATCH] tt/ttauth: Update print_help() Ensure callers use 2 parameters for the call --- cde/lib/tt/bin/ttauth/ttauth.c | 2 +- cde/lib/tt/bin/ttauth/ttauth.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cde/lib/tt/bin/ttauth/ttauth.c b/cde/lib/tt/bin/ttauth/ttauth.c index 10e0e95b5..3a98acaa0 100644 --- a/cde/lib/tt/bin/ttauth/ttauth.c +++ b/cde/lib/tt/bin/ttauth/ttauth.c @@ -100,7 +100,7 @@ NULL }; for (msg = prefixmsg; *msg; msg++) { fprintf (stderr, "%s\n", *msg); } - print_help (stderr, NULL, " "); /* match prefix indentation */ + print_help (stderr, NULL); fprintf (stderr, "\n"); for (msg = suffixmsg; *msg; msg++) { fprintf (stderr, "%s\n", *msg); diff --git a/cde/lib/tt/bin/ttauth/ttauth.h b/cde/lib/tt/bin/ttauth/ttauth.h index b3670b366..c7b76c5ae 100644 --- a/cde/lib/tt/bin/ttauth/ttauth.h +++ b/cde/lib/tt/bin/ttauth/ttauth.h @@ -59,7 +59,7 @@ typedef int Bool; extern char *ProgramName; int process_command(), auth_initialize(), auth_finalize(); -extern int print_help(); +extern int print_help(FILE *fp, const char *cmd); extern int verbose; extern Bool ignore_locks; extern Bool break_locks;