summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authoragc <agc>1999-06-30 09:45:26 +0000
committeragc <agc>1999-06-30 09:45:26 +0000
commite1cffe0a7efb262c403d52dbcced388393cb2386 (patch)
treef41003240b6ea3832bcec28a20a5af8e1cf9ab91 /databases
parent5fbf803c15b6dc614c0ef341a12f47edd7ae14f0 (diff)
downloadpkgsrc-e1cffe0a7efb262c403d52dbcced388393cb2386.tar.gz
Quieten a warning from the compiler.
Diffstat (limited to 'databases')
-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