summaryrefslogtreecommitdiff
path: root/source/n/netkit-ntalk/netkit-ntalk-0.11.diff
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2009-08-26 10:00:38 -0500
committerEric Hameleers <alien@slackware.com>2018-05-31 22:41:17 +0200
commit5a12e7c134274dba706667107d10d231517d3e05 (patch)
tree55718d5acb710fde798d9f38d0bbaf594ed4b296 /source/n/netkit-ntalk/netkit-ntalk-0.11.diff
downloadcurrent-5a12e7c134274dba706667107d10d231517d3e05.tar.gz
Slackware 13.0slackware-13.0
Wed Aug 26 10:00:38 CDT 2009 Slackware 13.0 x86_64 is released as stable! Thanks to everyone who helped make this release possible -- see the RELEASE_NOTES for the credits. The ISOs are off to the replicator. This time it will be a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. We're taking pre-orders now at store.slackware.com. Please consider picking up a copy to help support the project. Once again, thanks to the entire Slackware community for all the help testing and fixing things and offering suggestions during this development cycle. As always, have fun and enjoy! -P.
Diffstat (limited to 'source/n/netkit-ntalk/netkit-ntalk-0.11.diff')
-rw-r--r--source/n/netkit-ntalk/netkit-ntalk-0.11.diff64
1 files changed, 64 insertions, 0 deletions
diff --git a/source/n/netkit-ntalk/netkit-ntalk-0.11.diff b/source/n/netkit-ntalk/netkit-ntalk-0.11.diff
new file mode 100644
index 00000000..936ce5cc
--- /dev/null
+++ b/source/n/netkit-ntalk/netkit-ntalk-0.11.diff
@@ -0,0 +1,64 @@
+--- ./talkd/talkd.c.orig Fri Nov 27 05:40:46 1998
++++ ./talkd/talkd.c Wed Sep 15 21:30:24 1999
+@@ -67,6 +67,9 @@
+ #define TIMEOUT 30
+ #define MAXIDLE 120
+
++#if !defined(MAXHOSTNAMELEN)
++#define MAXHOSTNAMELEN 64
++#endif
+ char ourhostname[MAXHOSTNAMELEN];
+
+ static time_t lastmsgtime;
+--- ./talkd/print.c.orig Fri Nov 27 01:58:47 1998
++++ ./talkd/print.c Wed Sep 15 21:30:24 1999
+@@ -51,6 +51,7 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <paths.h>
++#include <errno.h>
+ #include "prot_talkd.h"
+ #include "proto.h"
+
+@@ -145,7 +146,7 @@
+ tt[sizeof(tt)-1]=0;
+
+ snprintf(buf, sizeof(buf),
+- "%s: %s: id %lu, l_user %s, r_user %s, r_tty %s\n",
++ "%s: %s: id %u, l_user %s, r_user %s, r_tty %s\n",
+ cp, tp, mp->id_num, lu, ru, tt);
+ write(logfd, buf, strlen(buf));
+ }
+@@ -185,7 +186,7 @@
+ size_t i;
+ char tmp[4], buf[128];
+ if (!badpackets) return;
+- snprintf(buf, sizeof(buf), "From: %s [%lu]",
++ snprintf(buf, sizeof(buf), "From: %s [%u]",
+ inet_ntoa(from->sin_addr), from->sin_addr.s_addr);
+ write(packfd, buf, strlen(buf));
+ for (i=0; i<len; i++) {
+--- ./MCONFIG.orig Wed Dec 9 10:52:09 1998
++++ ./MCONFIG Wed Sep 15 21:30:46 1999
+@@ -30,10 +30,10 @@
+ CC=gcc
+
+ # Compiler warnings
+-WARNINGS= -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wcast-align
++WARNINGS= -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wcast-align
+
+ # Compiler flags to use
+-CFLAGS= -pipe -O2 $(WARNINGS)
++CFLAGS= -pipe $(RPM_OPT_FLAGS) $(WARNINGS)
+
+ # Link-time flags to use
+ LDFLAGS= -s
+@@ -49,7 +49,7 @@
+
+
+ # Work around GNU libc lossage
+-USE_GLIBC=0
++USE_GLIBC=1
+
+
+