summaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-01-03 19:58:18 -0800
committerKevin McCarthy <kevin@8t8.us>2019-01-04 13:59:27 -0800
commit248c2ee8ed7c0ff333ae076041107210c5acd641 (patch)
treef51f10f1f486e08c76e187c095e536620bebbbd0 /hash.c
parent085a6f74b3b7cebabb75f4c99ea9d59649c7b03a (diff)
Clean up code indentation.
These are mostly automated changes corresponding to the emacs settings: (c-set-style "linux") (setq c-basic-offset 2) (c-set-offset 'case-label '+) Most of the code follows the convention: (add-to-list 'c-cleanup-list 'space-before-funcall) but this is not enforced by this indentation cleanup. Also, I personally dislike tabs, so I have: (setq-default indent-tabs-mode nil) in my own configuration. However I have no desire to change every line just for that effect. So this cleanup does nothing about the mix issue. Some of the secondary files (e.g. regex.c) have been skipped. I've also skipped crypt-gpgme.c, because I need to think about that file. Werner Koch and the GnuPG team contributed most it, and it follows the Gnu indentation settings. It should probably be made uniform with Mutt, but I don't want to discourage future GnuPG contribution to the file. I manually reverted a few unsightly cleanups, and added a few tweeks when I saw things that could be improved.
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index e9d6cb15..53d37d63 100644
--- a/hash.c
+++ b/hash.c
@@ -238,7 +238,7 @@ struct hash_elem *hash_find_bucket (const HASH *table, const char *strkey)
}
static void union_hash_delete (HASH *table, union hash_key key, const void *data,
- void (*destroy) (void *))
+ void (*destroy) (void *))
{
int hash;
struct hash_elem *ptr, **last;
@@ -281,7 +281,7 @@ void hash_delete (HASH *table, const char *strkey, const void *data,
}
void int_hash_delete (HASH *table, unsigned int intkey, const void *data,
- void (*destroy) (void *))
+ void (*destroy) (void *))
{
union hash_key key;
key.intkey = intkey;