#984467 menu.h: fix a warning from the compiler

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-03 22:51:04 UTC
Severity:
normal
Tags:
#984467#5
Date:
2021-03-03 22:48:46 UTC
From:
To:
Dear Maintainer,

In file included from nn.c:32:
menu.h:65:1: warning: parameter names (without types) in function declaration
   65 | int             menu(fct_type);
      | ^~~

####

  Use an adequate function declaration "int (*)(void)" instead of
"fct_type)".

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 menu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/menu.h b/menu.h
index 6d1e903..e43ca02 100644
--- a/menu.h
+++ b/menu.h
@@ -62,7 +62,7 @@
 #define AC_UNCHANGED	6	/* no display changes */

 char           *pct(long, long, long, long);
-int             menu(fct_type);
+int             menu(int (*)(void));
 article_header *get_menu_article(void);
 int             alt_command(void);
 int             prt_replies(int);