fetch prototypes, clean up includes

This commit is contained in:
naddy 2012-08-06 20:32:22 +00:00
parent 1a8c987465
commit f3129815ec
4 changed files with 36 additions and 22 deletions

View File

@ -1,14 +1,7 @@
$OpenBSD: patch-net_c,v 1.1 2002/07/23 17:58:56 pvalchev Exp $
--- net.c.orig Mon Apr 13 03:09:26 1998
+++ net.c Tue Jul 23 11:52:31 2002
@@ -1,13 +1,15 @@
-
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <arpa/inet.h>
#include <netdb.h>
$OpenBSD: patch-net_c,v 1.2 2012/08/06 20:32:22 naddy Exp $
--- net.c.orig Mon Apr 13 11:09:26 1998
+++ net.c Mon Aug 6 22:23:24 2012
@@ -7,7 +7,9 @@
#include <sys/time.h>
#include <sys/stat.h>
#include <unistd.h>

View File

@ -1,12 +1,19 @@
$OpenBSD: patch-newsfetch_c,v 1.1 2002/07/23 17:58:56 pvalchev Exp $
--- newsfetch.c.orig Thu Jul 23 03:28:56 1998
+++ newsfetch.c Tue Jul 23 11:27:03 2002
@@ -17,7 +17,7 @@
$OpenBSD: patch-newsfetch_c,v 1.2 2012/08/06 20:32:22 naddy Exp $
--- newsfetch.c.orig Thu Jul 23 11:28:56 1998
+++ newsfetch.c Mon Aug 6 22:24:26 2012
@@ -7,6 +7,7 @@
#include <stdio.h>
+#include <stdlib.h>
#include <signal.h>
#include <pwd.h>
#include <sys/types.h>
@@ -17,6 +18,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
-
+#include <string.h>
#include "newsfetch.h"
extern char **environ;

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-nntp_c,v 1.1 2012/08/06 20:32:22 naddy Exp $
--- nntp.c.orig Mon Aug 6 22:25:44 2012
+++ nntp.c Mon Aug 6 22:26:07 2012
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include <pwd.h>
#include <sys/types.h>
#include <sys/socket.h>

View File

@ -1,7 +1,12 @@
$OpenBSD: patch-util_c,v 1.2 2004/01/04 21:39:33 espie Exp $
--- util.c.orig 1998-04-13 09:47:40.000000000 +0200
+++ util.c 2004-01-04 22:37:14.000000000 +0100
@@ -5,6 +5,7 @@
$OpenBSD: patch-util_c,v 1.3 2012/08/06 20:32:22 naddy Exp $
--- util.c.orig Mon Apr 13 09:47:40 1998
+++ util.c Mon Aug 6 22:24:53 2012
@@ -1,10 +1,12 @@
#include <stdio.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <pwd.h>
@ -9,7 +14,7 @@ $OpenBSD: patch-util_c,v 1.2 2004/01/04 21:39:33 espie Exp $
#include "newsfetch.h"
extern int errno;
@@ -61,16 +62,16 @@ generateProcmailrc(char *homedir, char *
@@ -61,16 +63,16 @@ generateProcmailrc(char *homedir, char *rcfile, char *
FILE *fp, *fp1, *fp2;
char *tmp, buf[200], group[180], filterfile[100], procmailrcfile[100];
int i,j;