aboutsummaryrefslogtreecommitdiff
path: root/dns/totd
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-06-15 05:22:32 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-06-15 05:22:32 +0000
commit54c0973dc20fafe773d304336303358c1949d7fd (patch)
tree04e584d49d66f9fe36e9222d906ef6c8c7b65aac /dns/totd
parent3337af0ae13578ddf9a9a02d020b85c39f200a54 (diff)
downloadports-54c0973dc20fafe773d304336303358c1949d7fd.tar.gz
ports-54c0973dc20fafe773d304336303358c1949d7fd.zip
Notes
Diffstat (limited to 'dns/totd')
-rw-r--r--dns/totd/files/patch-conv_stf.c12
-rw-r--r--dns/totd/files/patch-ne_mesg.c30
-rw-r--r--dns/totd/files/patch-tcp_response.c12
3 files changed, 54 insertions, 0 deletions
diff --git a/dns/totd/files/patch-conv_stf.c b/dns/totd/files/patch-conv_stf.c
new file mode 100644
index 000000000000..e31ed941a98f
--- /dev/null
+++ b/dns/totd/files/patch-conv_stf.c
@@ -0,0 +1,12 @@
+diff -ru work/totd-1.3/conv_stf.c work~/totd-1.3/conv_stf.c
+--- conv_stf.c.orig Mon Mar 4 04:34:10 2002
++++ conv_stf.c Sat Jun 14 22:16:03 2003
+@@ -94,7 +94,7 @@
+ owner_len, owner, rrl);
+ rr_list_free (rrl);
+
+- syslog (LOG_DEBUG, "%s: rrs_new %x", fn, (unsigned int) rrs_new);
++ syslog (LOG_DEBUG, "%s: rrs_new %p", fn, rrs_new);
+ return (rrs_new);
+ }
+
diff --git a/dns/totd/files/patch-ne_mesg.c b/dns/totd/files/patch-ne_mesg.c
new file mode 100644
index 000000000000..64c488c0994a
--- /dev/null
+++ b/dns/totd/files/patch-ne_mesg.c
@@ -0,0 +1,30 @@
+diff -ru work/totd-1.3/ne_mesg.c work~/totd-1.3/ne_mesg.c
+--- ne_mesg.c.orig Wed Mar 6 06:56:02 2002
++++ ne_mesg.c Sat Jun 14 22:17:24 2003
+@@ -59,7 +59,7 @@
+
+ /* write qname */
+ if (T.debug > 4)
+- syslog (LOG_DEBUG, "%s: qname offset = %d", fn, ucp - buf);
++ syslog (LOG_DEBUG, "%s: qname offset = %d", fn, (int)(ucp - buf));
+
+ i = dname_copy (qname, ucp, buflen - written_len);
+ if (i < 0)
+@@ -71,7 +71,7 @@
+ /* write qtype / qclass */
+ if (T.debug > 4)
+ syslog (LOG_DEBUG, "%s: qtype/qclass offset = %d",
+- fn, ucp - buf);
++ fn, (int)(ucp - buf));
+
+ written_len += sizeof (uint16_t) * 2;
+ if (written_len > buflen)
+@@ -232,7 +232,7 @@
+ }
+
+ if (T.debug > 4)
+- syslog (LOG_DEBUG, "%s: return %d", fn, *wp - wp_start);
++ syslog (LOG_DEBUG, "%s: return %d", fn, (int)(*wp - wp_start));
+
+ return (*wp - wp_start);
+ }
diff --git a/dns/totd/files/patch-tcp_response.c b/dns/totd/files/patch-tcp_response.c
new file mode 100644
index 000000000000..88f38c92e97b
--- /dev/null
+++ b/dns/totd/files/patch-tcp_response.c
@@ -0,0 +1,12 @@
+diff -ru work/totd-1.3/tcp_response.c work~/totd-1.3/tcp_response.c
+--- tcp_response.c.orig Wed Mar 6 06:56:03 2002
++++ tcp_response.c Sat Jun 14 22:17:56 2003
+@@ -116,7 +116,7 @@
+ cont->wp += len;
+ if (cont->wp < (cont->mesg.p + cont->mesg_len)) {
+ syslog (LOG_DEBUG, "%s: left %d bytes -- continue.", fn,
+- (cont->mesg.p + cont->mesg_len) - cont->wp);
++ (int)((cont->mesg.p + cont->mesg_len) - cont->wp));
+
+ /* SUCCESS */
+ return 0; /* the processing continues ... */