- pull some prototypes, based on patch by ptiJo@noos.fr

- getopt returns -1, not EOF
This commit is contained in:
pvalchev 2002-07-23 17:58:55 +00:00
parent 25affa0205
commit 73af409460
6 changed files with 66 additions and 5 deletions

View File

@ -3,7 +3,7 @@
# Date created: 28 April 1998
# Whom: Ejovi Nuwere <ejovi@ejovi.net>
#
# $OpenBSD: Makefile,v 1.15 2002/05/15 17:58:49 espie Exp $
# $OpenBSD: Makefile,v 1.16 2002/07/23 17:58:55 pvalchev Exp $
#
COMMENT= "download news articles from NNTP server"
@ -11,7 +11,6 @@ COMMENT= "download news articles from NNTP server"
DISTNAME= newsfetch-1.21
CATEGORIES= news
MASTER_SITES= ${MASTER_SITE_SUNSITE:=system/news/readers/}
NEED_VERSION= 1.515
# License: BSD
PERMIT_PACKAGE_CDROM= Yes

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-aa,v 1.2 2001/03/12 15:32:06 wilfried Exp $
--- Makefile.orig Mon Apr 13 11:09:54 1998
+++ Makefile Mon Mar 12 16:30:53 2001
$OpenBSD: patch-Makefile,v 1.1 2002/07/23 17:58:56 pvalchev Exp $
--- Makefile.orig Mon Apr 13 03:09:54 1998
+++ Makefile Tue Jul 23 11:26:52 2002
@@ -1,14 +1,12 @@
-CC = gcc
-CFLAGS =

View File

@ -0,0 +1,20 @@
$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>
#include <sys/time.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <string.h>
#include <fcntl.h>
+#include <ctype.h>
extern int h_errno;

View File

@ -0,0 +1,12 @@
$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 @@
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
-
+#include <string.h>
#include "newsfetch.h"
extern char **environ;

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-opt_c,v 1.1 2002/07/23 17:58:56 pvalchev Exp $
--- opt.c.orig Mon Apr 13 08:39:59 1998
+++ opt.c Tue Jul 23 11:50:05 2002
@@ -1,4 +1,6 @@
#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
#include <unistd.h>
#include "newsfetch.h"
@@ -34,7 +36,7 @@ while (1)
-Y -> pipe each article
*/
c = Getopt(argc, argv, "w:t:T:d:f:U:N:x:p:P:Y:yslVvchH-");
- if (c == EOF)
+ if (c == -1)
break;
switch (c)

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-util_c,v 1.1 2002/07/23 17:58:56 pvalchev Exp $
--- util.c.orig Mon Apr 13 01:47:40 1998
+++ util.c Tue Jul 23 11:27:03 2002
@@ -5,6 +5,7 @@
#include <unistd.h>
#include <errno.h>
#include <pwd.h>
+#include <string.h>
#include "newsfetch.h"
extern int errno;