summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-06-30 09:45:26 +0000
committeragc <agc@pkgsrc.org>1999-06-30 09:45:26 +0000
commit524d59bf4153165b4377eabb41479df4bb0c7457 (patch)
treef41003240b6ea3832bcec28a20a5af8e1cf9ab91
parent47f405dada41d863ab333397f02699577ef219ed (diff)
downloadpkgsrc-524d59bf4153165b4377eabb41479df4bb0c7457.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