From 2a27d50fa1f4f1533d4be401298034515373a0ce Mon Sep 17 00:00:00 2001 From: "Roland C. Dowdeswell" Date: Tue, 22 May 2012 23:08:18 +0100 Subject: [PATCH] Formatting: unnecessary lines and trailing whitespace. --- lib/hdb/db3.c | 6 +++--- lib/hdb/print.c | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/hdb/db3.c b/lib/hdb/db3.c index 07c886dca..cbb143854 100644 --- a/lib/hdb/db3.c +++ b/lib/hdb/db3.c @@ -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); diff --git a/lib/hdb/print.c b/lib/hdb/print.c index 0bb989b99..0d1e28552 100644 --- a/lib/hdb/print.c +++ b/lib/hdb/print.c @@ -157,7 +157,6 @@ append_mit_key(krb5_context context, krb5_storage *sp, krb5_data keylenbytes; unsigned int salttype; - sz = append_string(context, sp, "\t%u\t%u\t%d\t%d\t", key_versions, kvno, key->key.keytype, key->key.keyvalue.length + 2); if (sz == -1) return sz; @@ -172,7 +171,7 @@ append_mit_key(krb5_context context, krb5_storage *sp, sz = append_hex(context, sp, 1, 1, &key->key.keyvalue); if (!key->salt) return sz; - + /* Map salt to MIT KDB style */ switch (key->salt->type) { case KRB5_PADATA_PW_SALT: