Deleted Added
full compact
udb.c (42575) udb.c (43730)
1/*
2 * Copyright (c) 1998 Sendmail, Inc. All rights reserved.
3 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
4 * Copyright (c) 1988, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * By using this file, you agree to the terms and conditions set
8 * forth in the LICENSE file which can be found at the top level of
9 * the sendmail distribution.
10 *
11 */
12
13#include "sendmail.h"
14
15#ifndef lint
16#if USERDB
1/*
2 * Copyright (c) 1998 Sendmail, Inc. All rights reserved.
3 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
4 * Copyright (c) 1988, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * By using this file, you agree to the terms and conditions set
8 * forth in the LICENSE file which can be found at the top level of
9 * the sendmail distribution.
10 *
11 */
12
13#include "sendmail.h"
14
15#ifndef lint
16#if USERDB
17static char sccsid [] = "@(#)udb.c 8.70 (Berkeley) 12/21/1998 (with USERDB)";
17static char sccsid [] = "@(#)udb.c 8.71 (Berkeley) 1/17/1999 (with USERDB)";
18#else
18#else
19static char sccsid [] = "@(#)udb.c 8.70 (Berkeley) 12/21/1998 (without USERDB)";
19static char sccsid [] = "@(#)udb.c 8.71 (Berkeley) 1/17/1999 (without USERDB)";
20#endif
21#endif
22
23#if USERDB
24
25#include <errno.h>
26
27#ifdef NEWDB

--- 1131 unchanged lines hidden (view full) ---

1159 {
1160#if DB_VERSION_MAJOR < 2
1161 (*up->udb_dbp->close)(up->udb_dbp);
1162#else
1163 errno = (*up->udb_dbp->close)(up->udb_dbp, 0);
1164#endif
1165 if (tTd(28, 1))
1166 {
20#endif
21#endif
22
23#if USERDB
24
25#include <errno.h>
26
27#ifdef NEWDB

--- 1131 unchanged lines hidden (view full) ---

1159 {
1160#if DB_VERSION_MAJOR < 2
1161 (*up->udb_dbp->close)(up->udb_dbp);
1162#else
1163 errno = (*up->udb_dbp->close)(up->udb_dbp, 0);
1164#endif
1165 if (tTd(28, 1))
1166 {
1167#if DB_VERSION_MAJOR < 2
1168 printf("_udbx_init: db->close(%s)\n",
1167 printf("_udbx_init: db->close(%s)\n",
1169#else
1170 printf("_udbx_init: db->close(%s)\n",
1171#endif
1172 up->udb_dbname);
1173 }
1174 }
1175 }
1176#endif
1177 return EX_TEMPFAIL;
1178}
1179

--- 57 unchanged lines hidden (view full) ---

1237#if DB_VERSION_MAJOR < 2
1238 (*up->udb_dbp->close)(up->udb_dbp);
1239#else
1240 errno = (*up->udb_dbp->close)(up->udb_dbp, 0);
1241#endif
1242 }
1243 if (tTd(28, 1))
1244 {
1168 up->udb_dbname);
1169 }
1170 }
1171 }
1172#endif
1173 return EX_TEMPFAIL;
1174}
1175

--- 57 unchanged lines hidden (view full) ---

1233#if DB_VERSION_MAJOR < 2
1234 (*up->udb_dbp->close)(up->udb_dbp);
1235#else
1236 errno = (*up->udb_dbp->close)(up->udb_dbp, 0);
1237#endif
1238 }
1239 if (tTd(28, 1))
1240 {
1245#if DB_VERSION_MAJOR < 2
1246 printf("_udbx_init: db->close(%s)\n",
1241 printf("_udbx_init: db->close(%s)\n",
1247#else
1248 printf("_udbx_init: db->close(%s)\n",
1249#endif
1250 up->udb_dbname);
1251 }
1252#endif
1253 }
1254}
1255
1256#ifdef HESIOD
1257

--- 86 unchanged lines hidden ---
1242 up->udb_dbname);
1243 }
1244#endif
1245 }
1246}
1247
1248#ifdef HESIOD
1249

--- 86 unchanged lines hidden ---