summaryrefslogtreecommitdiff
path: root/security/nfsbug
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2000-09-24 15:16:40 +0000
committerhubertf <hubertf@pkgsrc.org>2000-09-24 15:16:40 +0000
commitb12a8cbb626b744babd5f252f56317902ecc807c (patch)
treeca2bb783d0c01cf018876e3983342125bf06f1f1 /security/nfsbug
parent1a35fe76123acdd9df6b903c55b1c9ad7b37fd6b (diff)
downloadpkgsrc-b12a8cbb626b744babd5f252f56317902ecc807c.tar.gz
Fix a few compile-time warnings.
Still doesn't work on Alpha.
Diffstat (limited to 'security/nfsbug')
-rw-r--r--security/nfsbug/files/patch-sum4
-rw-r--r--security/nfsbug/patches/patch-ac49
2 files changed, 46 insertions, 7 deletions
diff --git a/security/nfsbug/files/patch-sum b/security/nfsbug/files/patch-sum
index ee1bb279d35..1524a11e7d5 100644
--- a/security/nfsbug/files/patch-sum
+++ b/security/nfsbug/files/patch-sum
@@ -1,5 +1,5 @@
-$NetBSD: patch-sum,v 1.1 1999/07/09 14:23:03 agc Exp $
+$NetBSD: patch-sum,v 1.2 2000/09/24 15:16:40 hubertf Exp $
MD5 (patch-aa) = 619b08e8a17bf8c9d2d8bf138da72b30
MD5 (patch-ab) = 4d158c89e16c000ad4bfdafbc4c14a86
-MD5 (patch-ac) = b1fc228cb246c469baedcca3de981bd0
+MD5 (patch-ac) = a36bc201607543163d97a60c0c5d6ec4
diff --git a/security/nfsbug/patches/patch-ac b/security/nfsbug/patches/patch-ac
index e59e78dcb9f..0ebbcb4aeef 100644
--- a/security/nfsbug/patches/patch-ac
+++ b/security/nfsbug/patches/patch-ac
@@ -1,8 +1,16 @@
-$NetBSD: patch-ac,v 1.2 1998/11/12 23:48:35 frueauf Exp $
+$NetBSD: patch-ac,v 1.3 2000/09/24 15:16:40 hubertf Exp $
---- nfsbug.c.orig Mon Sep 28 17:45:40 1998
-+++ nfsbug.c Mon Sep 28 17:47:58 1998
-@@ -25,16 +25,18 @@
+--- nfsbug.c.orig Fri Feb 17 00:57:27 1995
++++ nfsbug.c
+@@ -14,6 +14,7 @@
+ * - close sockets (?)
+ */
+ #include <stdio.h>
++#include <string.h>
+ #include <ctype.h>
+ #include <netdb.h>
+ #include <errno.h>
+@@ -25,18 +26,20 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -20,7 +28,38 @@ $NetBSD: patch-ac,v 1.2 1998/11/12 23:48:35 frueauf Exp $
+#include <ufs/ufs/dinode.h>
+#else
#include <ufs/inode.h>
-+#endif
#endif
#endif
++#endif
+
+ #include "mount.h"
+ #include "nfs_prot.h"
+@@ -105,8 +108,10 @@
+ /*
+ * File system types, these correspond to entries in fsconf
+ */
++#ifndef __NetBSD__
+ #define MOUNT_UFS 1
+ #define MOUNT_NFS 2
++#endif /* __NetBSD__ */
+ #define MOUNT_PC 3
+ #define MOUNT_LO 4
+ #define MOUNT_TFS 5
+@@ -240,7 +245,7 @@
+ } else
+ proto = "TCP/IP";
+
+- clnt_control(mntclient, CLSET_TIMEOUT, &timeout);
++ clnt_control(mntclient, CLSET_TIMEOUT, (char *)&timeout);
+ mntclient->cl_auth = create_unix_auth(0, 0);
+ if (mntclient->cl_auth == NULL) {
+ clnt_destroy(mntclient);
+@@ -277,7 +282,7 @@
+ } else
+ proto = "TCP/IP";
+- clnt_control(nfsclient, CLSET_TIMEOUT, &timeout);
++ clnt_control(nfsclient, CLSET_TIMEOUT, (char *)&timeout);
+ nfsclient->cl_auth = create_unix_auth(-2, -2); /* well known uid, gid */
+ if (nfsclient->cl_auth == NULL) {
+ clnt_destroy(nfsclient);