From 23e78cd6bda4758d4f54e0cf3b9c79bb6bcb1f6e Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Fri, 10 Oct 2014 10:41:10 -0400 Subject: Add editor modelines; Adjust whitespace as needed. Change-Id: I3dc57f4c2ca57585103e3b71503ac4c332903e50 Reviewed-on: https://code.wireshark.org/review/4594 Reviewed-by: Bill Meier --- epan/asm_utils.c | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'epan/asm_utils.c') diff --git a/epan/asm_utils.c b/epan/asm_utils.c index 1f38afc383..c80b870176 100644 --- a/epan/asm_utils.c +++ b/epan/asm_utils.c @@ -62,12 +62,24 @@ wrs_check_charset(const guchar table[256], const char *str) guint wrs_str_hash(gconstpointer v) { - /* 31 bit hash function */ - const signed char *p = (const signed char *)v; - guint32 h = *p; - if (h) - for (p += 1; *p != '\0'; p++) - h = (h << 5) - h + *p; - return h; + /* 31 bit hash function */ + const signed char *p = (const signed char *)v; + guint32 h = *p; + if (h) + for (p += 1; *p != '\0'; p++) + h = (h << 5) - h + *p; + return h; } +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 4 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * vi: set shiftwidth=4 tabstop=8 expandtab: + * :indentSize=4:tabSize=8:noTabs=true: + */ -- cgit v1.2.3