File gup-gcc15.patch of Package gup
Index: gup.c
===================================================================
--- gup.c.orig
+++ gup.c
@@
-struct command_s {
- char *name;
- int (*handler)(); /* function to handle it */
- int args;
- int needs_site;
- int sets_quit;
-};
+struct command_s {
+ char *name;
+ int (*handler)(char **); /* function to handle it */
+ int args;
+ int needs_site;
+ int sets_quit;
+};
@@
-static int getoneline(FILE *fp);
-static int tokenize(char *cp, char**tokens, int max_tokens);
-static int command_cmp(char *str, char *cmd);
-static int site(char **tokens);
-static int include(char **tokens);
-static int exclude(char **tokens);
-static int insert_group(int not_flag, char *gname);
-static int delete(char **tokens);
-static int list(char **tokens);
-static int quit(char **tokens);
-static int newsgroups(char **tokens);
+static int getoneline(FILE *fp);
+static int tokenize(char *cp, char**tokens, int max_tokens);
+static int command_cmp(char *str, char *cmd);
+static int site(char **tokens);
+static int include(char **tokens);
+static int exclude(char **tokens);
+static int insert_group(int not_flag, char *gname);
+static int delete(char **tokens);
+static int list(char **tokens);
+static int quit(char **tokens);
+static int newsgroups(char **tokens);
+
+/* Ensure the command handler declarations match the expected prototype */
+static int help(char **tokens);