Problem: The file examples/ex_access.c won't compile.
*** examples/ex_access.c.orig Wed Dec 31 19:00:00 1969
--- examples/ex_access.c Mon Apr 14 07:19:11 1997
***************
*** 128,134 ****
fprintf(stderr, "ex_access: get: %s\n", strerror(errno));
(void)dbcp->c_close(dbcp);
! (void)dbp->c_close(dbp, 0);
return (db_appexit(dbenv));
}
--- 128,134 ----
fprintf(stderr, "ex_access: get: %s\n", strerror(errno));
(void)dbcp->c_close(dbcp);
! (void)dbp->close(dbp, 0);
return (db_appexit(dbenv));
}
***************
*** 145,158 ****
/* Rely on calloc to initialize the structure. */
if ((dbenv = (DB_ENV *)calloc(sizeof(DB_ENV), 1)) == NULL) {
! fprintf(stderr, "ex_access: %s", strerror(ENOMEM));
exit (1);
}
dbenv->db_errfile = stderr;
dbenv->db_errpfx = "ex_access";
if ((errno = db_appinit(home, NULL, dbenv, 0)) != 0) {
! fprintf(stderr, "ex_access: db_appinit: %s", strerror(errno));
exit (1);
}
return (dbenv);
--- 145,158 ----
/* Rely on calloc to initialize the structure. */
if ((dbenv = (DB_ENV *)calloc(sizeof(DB_ENV), 1)) == NULL) {
! fprintf(stderr, "ex_access: %s\n", strerror(ENOMEM));
exit (1);
}
dbenv->db_errfile = stderr;
dbenv->db_errpfx = "ex_access";
if ((errno = db_appinit(home, NULL, dbenv, 0)) != 0) {
! fprintf(stderr, "ex_access: db_appinit: %s\n", strerror(errno));
exit (1);
}
return (dbenv);