diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-08-15 10:05:14 +0200 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-08-16 21:56:45 +0000 |
commit | af8f962d294d690865bd0115e1699520b26761e1 (patch) | |
tree | 5922dd96ea0d339a6e16665de05d56aeaa0c923a | |
parent | 0a8a36ec7e1f2792400c4dc737b5769c7ccf31be (diff) |
tap-iousers: fix indent and add modelines info
Change-Id: Ia144e016bd7fb0b8d4770d45afa1145057d0a5e9
Reviewed-on: https://code.wireshark.org/review/3646
Reviewed-by: Evan Huus <eapache@gmail.com>
-rw-r--r-- | ui/cli/tap-iousers.c | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/ui/cli/tap-iousers.c b/ui/cli/tap-iousers.c index 61e097ff67..d32cc5be0f 100644 --- a/ui/cli/tap-iousers.c +++ b/ui/cli/tap-iousers.c @@ -43,12 +43,12 @@ typedef struct _io_users_t { static void iousers_draw(void *arg) { - conv_hash_t *hash = (conv_hash_t*)arg; + conv_hash_t *hash = (conv_hash_t*)arg; io_users_t *iu = (io_users_t *)hash->user_data; conv_item_t *iui; guint64 last_frames, max_frames; struct tm * tm_time; - guint i; + guint i; printf("================================================================================\n"); printf("%s Conversations\n",iu->type); @@ -99,7 +99,7 @@ iousers_draw(void *arg) printf("%-20s <-> %-20s %6" G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER "u %6" G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER "u %6" G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER "u ", - /* XXX - TODO: make name resolution configurable (through gbl_resolv_flags?) */ + /* XXX - TODO: make name resolution configurable (through gbl_resolv_flags?) */ get_conversation_address(&iui->src_address, TRUE), get_conversation_address(&iui->dst_address, TRUE), iui->tx_frames, iui->tx_bytes, iui->rx_frames, iui->rx_bytes, @@ -190,7 +190,7 @@ void init_iousers(struct register_ct* ct, const char *filter) iu = g_new0(io_users_t,1); iu->type = proto_get_protocol_short_name(find_protocol_by_id(get_conversation_proto_id(ct))); iu->filter = g_strdup(filter); - iu->hash.user_data = iu; + iu->hash.user_data = iu; error_string=register_tap_listener(proto_get_protocol_filter_name(get_conversation_proto_id(ct)), &iu->hash, filter, 0, NULL, get_conversation_packet_func(ct), iousers_draw); if(error_string){ @@ -202,3 +202,16 @@ void init_iousers(struct register_ct* ct, const char *filter) } } + +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 8 + * tab-width: 8 + * indent-tabs-mode: t + * End: + * + * vi: set shiftwidth=8 tabstop=8 noexpandtab: + * :indentSize=8:tabSize=8:noTabs=false: + */ |