$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