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-macltestat.c | |
parent | 63faad686b49e02b86cd1961dd3bc8283f120da8 (diff) |
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-macltestat.c')
-rw-r--r-- | ui/cli/tap-macltestat.c | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/ui/cli/tap-macltestat.c b/ui/cli/tap-macltestat.c index 4413f17ab5..253fd4f2c8 100644 --- a/ui/cli/tap-macltestat.c +++ b/ui/cli/tap-macltestat.c @@ -101,7 +101,7 @@ typedef struct mac_lte_row_data { /* One row/UE in the UE table */ typedef struct mac_lte_ep { - struct mac_lte_ep* next; + struct mac_lte_ep *next; struct mac_lte_row_data stats; } mac_lte_ep_t; @@ -142,8 +142,8 @@ typedef struct mac_lte_stat_t { static void mac_lte_stat_reset(void *phs) { - mac_lte_stat_t* mac_lte_stat = (mac_lte_stat_t *)phs; - mac_lte_ep_t* list = mac_lte_stat->ep_list; + mac_lte_stat_t *mac_lte_stat = (mac_lte_stat_t *)phs; + mac_lte_ep_t *list = mac_lte_stat->ep_list; /* Reset counts of unique ueids & rntis */ memset(mac_lte_stat->used_ueids, 0, 65535); @@ -163,15 +163,15 @@ mac_lte_stat_reset(void *phs) /* Allocate a mac_lte_ep_t struct to store info for new UE */ -static mac_lte_ep_t* alloc_mac_lte_ep(const struct mac_lte_tap_info *si, packet_info *pinfo _U_) +static mac_lte_ep_t *alloc_mac_lte_ep(const struct mac_lte_tap_info *si, packet_info *pinfo _U_) { - mac_lte_ep_t* ep; + mac_lte_ep_t *ep; if (!si) { return NULL; } - if (!(ep = g_new(mac_lte_ep_t,1))) { + if (!(ep = g_new(mac_lte_ep_t, 1))) { return NULL; } @@ -291,7 +291,7 @@ mac_lte_stat_packet(void *phs, packet_info *pinfo, epan_dissect_t *edt _U_, for (tmp = hs->ep_list;(tmp != NULL); tmp = tmp->next) { /* Match only by RNTI and UEId together */ if ((tmp->stats.rnti == si->rnti) && - (tmp->stats.ueid == si->ueid)){ + (tmp->stats.ueid == si->ueid)) { te = tmp; break; } @@ -438,7 +438,7 @@ mac_lte_stat_draw(void *phs) /* Deref the struct */ mac_lte_stat_t *hs = (mac_lte_stat_t *)phs; - mac_lte_ep_t* list = hs->ep_list, *tmp = 0; + mac_lte_ep_t *list = hs->ep_list, *tmp = 0; /* System data */ printf("System data:\n"); @@ -526,7 +526,7 @@ static void mac_lte_stat_init(const char *opt_arg, void *userdata _U_) } /* Create struct */ - hs = g_new0(mac_lte_stat_t,1); + hs = g_new0(mac_lte_stat_t, 1); hs->ep_list = NULL; error_string = register_tap_listener("mac-lte", hs, @@ -549,3 +549,15 @@ register_tap_listener_mac_lte_stat(void) register_stat_cmd_arg("mac-lte,stat", mac_lte_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: + */ |