1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/news/nntp/files/patch-xmit-xmitauth.c
Dirk Meyer 7f4dbf6c0d - fix for CURRENT
math builtins are always visible in gcc33
2003-07-25 17:41:07 +00:00

46 lines
911 B
C

--- xmit/xmitauth.c.orig Sat Dec 3 22:54:06 1994
+++ xmit/xmitauth.c Fri Jul 25 19:15:39 2003
@@ -11,6 +11,7 @@
extern char Debug;
extern int converse();
+extern void nntpdlog();
FILE *sys;
@@ -37,7 +38,7 @@
/* malformed entry? */
if (i != 3)
{
- log(L_NOTICE,"malformed entry in nntp.sys");
+ nntpdlog(L_NOTICE,"malformed entry in nntp.sys");
continue;
}
@@ -48,14 +49,14 @@
if (feof(sys))
{
sprintf(buf,"host %s authinfo not in nntp.sys", host);
- log(L_NOTICE, buf);
+ nntpdlog(L_NOTICE, buf);
exit(1);
}
sprintf(buf,"authinfo user %s", user);
if (converse(buf, sizeof(buf)) != NEED_AUTHDATA)
{
- log(L_NOTICE, buf);
+ nntpdlog(L_NOTICE, buf);
exit(1);
}
@@ -66,7 +67,7 @@
sprintf(buf,"authinfo pass %s", pass);
if (converse(buf, sizeof(buf)) != OK_AUTH)
{
- log(L_NOTICE, buf);
+ nntpdlog(L_NOTICE, buf);
exit(1);
}