diff options
author | Evan Huus <eapache@gmail.com> | 2014-06-23 16:22:05 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-06-23 16:22:08 +0000 |
commit | 520190c77b39c9674addf9b8a58ef39ce14a05a2 (patch) | |
tree | 3f9997b415f193de85aa19094b20ee2e33f9d1d1 /epan | |
parent | 9079e3ad1d32c594309a52ccef5936d11a93a55d (diff) |
Revert "Cheat and try to fix the generated file manually."
This reverts commit 9079e3ad1d32c594309a52ccef5936d11a93a55d.
Change-Id: I0430408e139ff8de068c970d02e36122552614fe
Reviewed-on: https://code.wireshark.org/review/2575
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-sip-hdrs.c | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/epan/dissectors/packet-sip-hdrs.c b/epan/dissectors/packet-sip-hdrs.c index e3053ce20a..ae79dc467e 100644 --- a/epan/dissectors/packet-sip-hdrs.c +++ b/epan/dissectors/packet-sip-hdrs.c @@ -1,23 +1,3 @@ -/* - * Wireshark - Network traffic analyzer - * By Gerald Combs <gerald@wireshark.org> - * Copyright 2014 Gerald Combs - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - /* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 500 -D packet-sip-hdrs.gperf */ /* Computed positions: -k'1,3,7,$' */ @@ -451,16 +431,16 @@ _sip_header_find (register const char *str, register unsigned int len) if (key <= MAX_HASH_VALUE && key >= 0) { - register int i = lookup[key]; + register int index = lookup[key]; - if (i >= 0) + if (index >= 0) { - if (len == lengthtable[i]) + if (len == lengthtable[index]) { - register const char *s = wordlist[i].name; + register const char *s = wordlist[index].name; if (*str == *s && !memcmp (str + 1, s + 1, len - 1)) - return &wordlist[i]; + return &wordlist[index]; } } } |