freebsd-ports/news/nntpbtr/files/patch-nntpbtr_3.c
Adam Weinberger 2a58169b19 Add stage support to news, and improve correctness.
I am not touching the husky ports with a 10 foot pole.

atp:
	stage, improve pkg-message
crashmail:
	stage
diablo:
	too wacky to stage, but convert WITH_* to OPTIONS, unmute
	commands that shouldn't be muted, use :MDOCS
fidogate-ds:
	stage, OPTIONS, treat examples as EXAMPLES, not DOCS, handle
	/var/* in the plist properly
golded+:
	stage, OPTIONS, protect examples behind %%PORTEXAMPLES%%
nntpbtr:
	this was an unbelievably PITA
	stage, add missing prototypes, add missing return types,
	rename patch files to what they actually patch
nntpcache:
	stage support, required lots of Makefile.in patching,
	call submakes correctly, handle config files properly
nzbperl:
	stage, use OPTIONS, remove obsolete pkg-message
papercut:
	stage, handle config file properly
py-pynzb:
	stage, use OPTIONS helper to avoid bsd.port.options.mk inclusion
s-news:
	stage
slrnconf:
	stage
slrnface:
	stage, install required files to datadir, not examplesdir,
	generate proper pkg-message
sn:
	stage
2014-03-29 17:28:56 +00:00

80 lines
1.2 KiB
C

--- nntpbtr.c.orig 2014-03-29 11:51:17.000000000 -0400
+++ nntpbtr.c 2014-03-29 11:55:16.000000000 -0400
@@ -88,6 +88,14 @@
char *mktemp();
char *malloc();
+void qsaveunread();
+void readarticle();
+void getnewnews();
+void goodbye();
+void get_time();
+void getlock();
+void unlock();
+
int rnum = 0, anum = 0;
#ifdef SIGTTIN
@@ -106,7 +114,7 @@
* Save all unreaded articles in art. list file.
*/
-qsaveunread()
+void qsaveunread()
{
if( intflag++ )
return;
@@ -381,7 +389,7 @@
* Then get implicit lock of host...
*/
-getlock(host,oldtime)
+void getlock(host,oldtime)
char *host, *oldtime;
{
time_t tim;
@@ -428,7 +436,7 @@
}
-unlock(host)
+void unlock(host)
char *host;
{
int i;
@@ -453,7 +461,7 @@
}
-get_time(host,newtime)
+void get_time(host,newtime)
char *host, *newtime;
{
int server, i;
@@ -520,7 +528,7 @@
/* Normal goodbye talk
*/
-goodbye()
+void goodbye()
{
char string[NNTP_STRLEN+1];
@@ -741,7 +749,7 @@
* If channel fail - reconnect.
*/
-readarticle()
+void readarticle()
{
int incore, n;
char *endart, *line;
@@ -914,7 +922,7 @@
* from time of last session.
*/
-getnewnews()
+void getnewnews()
{
int n;
char string[NNTP_STRLEN+1];