summaryrefslogtreecommitdiff
path: root/databases/sdbm/patches/patch-aa
blob: d80042dbaeb31be101b3467370ae7bd029b4a078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-aa,v 1.2 1999/06/30 09:45:26 agc Exp $

--- sdbm.c.orig	Wed Jun 30 10:10:12 1999
+++ sdbm.c	Wed Jun 30 10:21:59 1999
@@ -35,17 +35,6 @@
 #endif
 
 /*
- * externals
- */
-#ifndef sun
-extern int errno;
-#endif
-
-extern char *malloc proto((unsigned int));
-extern void free proto((void *));
-extern long lseek();
-
-/*
  * 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