]> git.sur5r.net Git - openldap/blob - build/db.2.64.patch
d777593b7b1291eb6e155d3265b7864920edcf83
[openldap] / build / db.2.64.patch
1 *** db/db.c.sleepy      Sun Jan  3 20:02:51 1999
2 --- db/db.c     Sun Jan  3 20:28:25 1999
3 *************** db_open(fname, type, flags, mode, dbenv,
4 *** 106,112 ****
5         DB_PGINFO pginfo;
6         HASHHDR *hashm;
7         size_t cachesize;
8 !       ssize_t nr;
9         u_int32_t iopsize;
10         int fd, ftype, need_fileid, restore, ret, retry_cnt, swapped;
11         char *real_name, mbuf[512];
12 --- 106,112 ----
13         DB_PGINFO pginfo;
14         HASHHDR *hashm;
15         size_t cachesize;
16 !       ssize_t nr = (ssize_t) 0;
17         u_int32_t iopsize;
18         int fd, ftype, need_fileid, restore, ret, retry_cnt, swapped;
19         char *real_name, mbuf[512];
20 *************** open_retry:     if (LF_ISSET(DB_CREATE)) {
21 *** 337,343 ****
22                 if (nr != sizeof(mbuf)) {
23                         if (nr != 0) {
24                                 __db_err(dbenv,
25 !                                   "%s: unexpected file format", fname);
26                                 goto einval;
27                         }
28                         /*
29 --- 337,343 ----
30                 if (nr != sizeof(mbuf)) {
31                         if (nr != 0) {
32                                 __db_err(dbenv,
33 !                                   "%s: unexpected file format, %d bytes read", fname, nr);
34                                 goto einval;
35                         }
36                         /*