summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc>1999-06-30 09:45:26 +0000
committeragc <agc>1999-06-30 09:45:26 +0000
commitac4122ee409df7ae7aff04632c50303b175bedf0 (patch)
treef41003240b6ea3832bcec28a20a5af8e1cf9ab91
parent64d44fbc8802de1c0b4ac5f8ccd38aa65a1ca3a5 (diff)
downloadpkgsrc-ac4122ee409df7ae7aff04632c50303b175bedf0.tar.gz
Quieten a warning from the compiler.
-rw-r--r--databases/sdbm/patches/patch-aa15
1 files changed, 12 insertions, 3 deletions
diff --git a/databases/sdbm/patches/patch-aa b/databases/sdbm/patches/patch-aa
index 64ee801c3c7..d80042dbaeb 100644
--- a/databases/sdbm/patches/patch-aa
+++ b/databases/sdbm/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.1.1.1 1999/01/06 21:53:40 hubertf Exp $
+$NetBSD: patch-aa,v 1.2 1999/06/30 09:45:26 agc Exp $
---- sdbm.c.orig Wed Jan 6 22:48:06 1999
-+++ sdbm.c Wed Jan 6 22:48:38 1999
+--- sdbm.c.orig Wed Jun 30 10:10:12 1999
++++ sdbm.c Wed Jun 30 10:21:59 1999
@@ -35,17 +35,6 @@
#endif
@@ -20,3 +20,12 @@ $NetBSD: patch-aa,v 1.1.1.1 1999/01/06 21:53:40 hubertf Exp $
* forward
*/
static int getdbit proto((DBM *, long));
+@@ -95,7 +84,7 @@
+ */
+ n = strlen(file) * 2 + strlen(DIRFEXT) + strlen(PAGFEXT) + 2;
+
+- if ((dirname = malloc((unsigned) n)) == NULL)
++ if ((dirname = (char *) malloc((unsigned) n)) == NULL)
+ return errno = ENOMEM, (DBM *) NULL;
+ /*
+ * build the file names