summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-08 18:24:23 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-14 16:54:22 -0800
commit07f869b9024847a98d0593a3d05cff122ae7c8eb (patch)
treee69f41734278a4fb46a8c7aecc7288f9d15cae80
parent7ae07138436c9700c65192c4fbc3015819999666 (diff)
Declare help() and print_help() as static
Resolves gcc -Wmissing-prototypes warnings Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xprop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xprop.c b/xprop.c
index 7c2bb36..7aa543f 100644
--- a/xprop.c
+++ b/xprop.c
@@ -1814,7 +1814,7 @@ Set_Property (Display *dpy, Window w, const char *propname, const char *value)
*
*/
-void
+static void
print_help (void)
{
static const char *help_message =
@@ -1845,7 +1845,7 @@ print_help (void)
fprintf (stderr, "%s\n", help_message);
}
-void _X_NORETURN _X_COLD
+static inline void _X_NORETURN _X_COLD
help (void)
{
print_help();