diff options
author | Bill Meier <wmeier@newsguy.com> | 2014-10-13 15:04:21 -0400 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2014-10-13 19:09:07 +0000 |
commit | 6a9479ecf90ef64f944526354fb26ee876d3ad25 (patch) | |
tree | ff0542670c21c9323020d89002d3a2c64e93a46c /ui/cli/tap-expert.c | |
parent | 63faad686b49e02b86cd1961dd3bc8283f120da8 (diff) | |
download | wireshark-6a9479ecf90ef64f944526354fb26ee876d3ad25.tar.gz wireshark-6a9479ecf90ef64f944526354fb26ee876d3ad25.tar.bz2 wireshark-6a9479ecf90ef64f944526354fb26ee876d3ad25.zip |
Add editor modelines and/or adjust whilespace.
Change-Id: I626b7bd8ac6e4b91c57cc9152e7ce038754e7278
Reviewed-on: https://code.wireshark.org/review/4658
Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'ui/cli/tap-expert.c')
-rw-r--r-- | ui/cli/tap-expert.c | 52 |
1 files changed, 32 insertions, 20 deletions
diff --git a/ui/cli/tap-expert.c b/ui/cli/tap-expert.c index 892decd930..ff3006f7eb 100644 --- a/ui/cli/tap-expert.c +++ b/ui/cli/tap-expert.c @@ -37,7 +37,7 @@ void register_tap_listener_expert_info(void); /* Tap data */ typedef enum severity_level_t { - chat_level=0, + chat_level = 0, note_level, warn_level, error_level, @@ -52,15 +52,15 @@ typedef struct expert_entry { guint32 group; int frequency; - const gchar *protocol; - gchar *summary; + const gchar *protocol; + gchar *summary; } expert_entry; /* Overall struct for storing all data seen */ typedef struct expert_tapdata_t { - GArray *ei_array[max_level]; /* expert info items */ - GStringChunk* text; /* for efficient storage of summary strings */ + GArray *ei_array[max_level]; /* expert info items */ + GStringChunk *text; /* for efficient storage of summary strings */ } expert_tapdata_t; @@ -68,7 +68,7 @@ typedef struct expert_tapdata_t { static void expert_stat_reset(void *tapdata) { - gint n; + gint n; expert_tapdata_t *etd = (expert_tapdata_t *)tapdata; /* Free & reallocate chunk of strings */ @@ -86,12 +86,12 @@ static int expert_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *pointer) { - const expert_info_t *ei = (const expert_info_t *)pointer; - expert_tapdata_t *data = (expert_tapdata_t *)tapdata; - severity_level_t severity_level; - expert_entry tmp_entry; - expert_entry *entry; - guint n; + const expert_info_t *ei = (const expert_info_t *)pointer; + expert_tapdata_t *data = (expert_tapdata_t *)tapdata; + severity_level_t severity_level; + expert_entry tmp_entry; + expert_entry *entry; + guint n; switch (ei->severity) { case PI_CHAT: @@ -143,9 +143,9 @@ expert_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U /* Output for all of the items of one severity */ static void draw_items_for_severity(GArray *items, const gchar *label) { - guint n; + guint n; expert_entry *ei; - int total = 0; + int total = 0; /* Don't print title if no items */ if (items->len == 0) { @@ -191,11 +191,11 @@ expert_stat_draw(void *phs _U_) /* Create a new expert stats struct */ static void expert_stat_init(const char *opt_arg, void *userdata _U_) { - const char *args = NULL; - const char *filter = NULL; - GString *error_string; - expert_tapdata_t *hs; - int n; + const char *args = NULL; + const char *filter = NULL; + GString *error_string; + expert_tapdata_t *hs; + int n; /* Check for args. */ if (strncmp(opt_arg, "expert", 6) == 0) { @@ -234,7 +234,7 @@ static void expert_stat_init(const char *opt_arg, void *userdata _U_) /* Create top-level struct */ - hs = g_new(expert_tapdata_t,1); + hs = g_new(expert_tapdata_t, 1); memset(hs, 0, sizeof(expert_tapdata_t)); /* Allocate chunk of strings */ @@ -270,3 +270,15 @@ register_tap_listener_expert_info(void) register_stat_cmd_arg("expert", expert_stat_init, NULL); } +/* + * 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: + */ |