File gup-gcc15.patch of Package gup
Index: gup.c
===================================================================
--- gup.c.orig
+++ gup.c
@@ -71,26 +71,26 @@ struct command_s {
};
-static void parse_options();
+static void parse_options(int argc, char *argv[]);
static void parse_headers();
static int parse_commands();
-static void load_active();
+static void load_active(LIST *exclusion_list);
static void write_groups();
static void print_version();
static void log_mail_headers();
static void item_print __P((int indent, int *column, const char *str));
-static int getoneline();
-static int tokenize();
-static int command_cmp();
-static int site();
-static int include();
-static int exclude();
-static int insert_group();
-static int delete();
-static int list();
-static int quit();
-static int newsgroups();
+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);
/* Here's the command list from the body of the mail */
Index: log.c
===================================================================
--- log.c.orig
+++ log.c
@@ -3,7 +3,7 @@
#include "gup.h"
-static void log_line();
+static void log_line(FILE *fp, int lflags, char *stamp, char *prefix, char *log_msg);
/* Log a message, with a time stamp to the logfile and or mailfile */
Index: rfc822.c
===================================================================
--- rfc822.c.orig
+++ rfc822.c
@@ -11,10 +11,6 @@ static char RCS[] =
"$Header: /var/src/gup/src/RCS/rfc822.c,v 1.3 93/07/24 01:28:45 andrew Exp Locker: andrew $";
#endif /* defined(RCSID) */
-extern time_t time();
-extern char *asctime();
-extern struct tm *gmtime();
-
#define QUESTIONABLE(c) \
((c) == '"' || (c) == '(' || (c) == ')' || (c) == '\\')
Index: rfc822.h
===================================================================
--- rfc822.h.orig
+++ rfc822.h
@@ -229,7 +229,7 @@ extern char *Pname;
/* Routines we provide. */
extern align_t MyAlloc();
extern int Split();
-extern int CrackFrom();
+extern int CrackFrom(ADDRCHAR *addr, char *name, char *p);
extern void re_modw();
extern void SplitFree();
extern void FreeFile();
@@ -240,8 +240,6 @@ extern void rfc822read();
extern void yyopen();
extern void yyerror();
-extern char *strerror();
-
/* Variables and routines that Unix(tm) provides. */
extern int errno;
extern int sys_nerr;
Index: sort.c
===================================================================
--- sort.c.orig
+++ sort.c
@@ -20,7 +20,7 @@
* Note that the inbound list is worthless after this routine.
*/
-static int mat_compare();
+static int mat_compare(GROUP **g1, GROUP **g2);
extern LIST *
@@ -48,7 +48,7 @@ sort_groups(glist)
/* Do the sort */
- qsort((char *) stab, LIST_LENGTH(glist), sizeof(GROUP *), mat_compare);
+ qsort((char *) stab, LIST_LENGTH(glist), sizeof(GROUP *), (int (*)(const void *, const void *)) mat_compare);
/* Build the results list */