#984465 group.h: fix an error from the compiler

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-03 22:33:04 UTC
Severity:
normal
Tags:
#984465#5
Date:
2021-03-03 22:31:53 UTC
From:
To:
Dear Maintainer,

cc -Iconf -Wall -Wextra -Wformat=2 -Wstringop-overflow=4
-Wshadow=global -Wredundant-decls -Wunused -Wunused-parameter
-fsanitize=signed-integer-overflow -fsanitize-undefined-trap-on-error
-fstack-protector-strong -fno-common -fstack-clash-protection -ftrapv
-funsigned-char -fvar-tracking-assignments -ggdb -D_FORTIFY_SOURCE=2
-Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes
-Wold-style-declaration -std=c2x   -c -o nn.o nn.c

In file included from nn.c:25:
group.h:6:97: error: unknown type name 'fct_type'; did you mean 'flag_type'?
    6 | int             group_menu(register group_header *, article_number, register flag_type, char *, fct_type);
      |                                                                                                 ^~~~~~~~
      |                                                                                                 flag_type

####

  Use a specific type of "fct_type": int (*) (fct_type_void)

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

diff --git a/group.h b/group.h
index e8341e5..4a21d9f 100644
--- a/group.h
+++ b/group.h
@@ -3,7 +3,8 @@
  */

 int             group_completion(char *, int);
-int             group_menu(register group_header *, article_number, register flag_type, char *, fct_type);
+int             group_menu(register group_header *, article_number, register flag_type, char *,
+			   int (*) (fct_type_void) );
 group_header   *lookup_regexp(char *, char *, int);
 int             goto_group(int, article_header *, flag_type);
 void            merge_and_read(flag_type, char *);