Formatting: unnecessary lines and trailing whitespace.

This commit is contained in:
Roland C. Dowdeswell
2012-05-22 23:08:18 +01:00
parent e41ff9c0f5
commit 2a27d50fa1
2 changed files with 4 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ DB_close(krb5_context context, HDB *db)
db->hdb_dbc = 0;
(*d->close)(d, 0);
db->hdb_db = 0;
if (db3->lock_fd >= 0) {
close(db3->lock_fd);
db3->lock_fd = -1;
@@ -265,11 +265,11 @@ _open_db(DB *d, char *fn, int myflags, int flags, mode_t mode, int *fd)
if (*fd == -1)
return errno;
/*
/*
* Without DB_FCNTL_LOCKING, the DB library complains when initializing
* a database in an empty file. Since the database is our lock file,
* we create it before Berkeley DB does, so a new DB always starts empty.
*/
*/
myflags |= DB_FCNTL_LOCKING;
ret = flock(*fd, (myflags&DB_RDONLY) ? LOCK_SH : LOCK_EX);