diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-02-11 20:10:54 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-02-12 09:19:56 +0000 |
commit | 77050a86f3f696e62c5b171de2aa5e9f480a2328 (patch) | |
tree | 6053be738542eebf8792095868e052d4d40220ac /plugins/profinet | |
parent | e81ea525655e3c61aaea939283f5beae64e77873 (diff) |
Profinet (pn-mrp): fix statement is indented as if it were guarded by... [-Werror=misleading-indentation] found by gcc6
Change-Id: I1d8709857cf3e1e65bca0c0c94629c47fc1a3c06
Reviewed-on: https://code.wireshark.org/review/13903
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'plugins/profinet')
-rw-r--r-- | plugins/profinet/packet-pn-mrp.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/profinet/packet-pn-mrp.c b/plugins/profinet/packet-pn-mrp.c index 114b8f53e5..696bde6554 100644 --- a/plugins/profinet/packet-pn-mrp.c +++ b/plugins/profinet/packet-pn-mrp.c @@ -191,22 +191,22 @@ dissect_PNMRP_Link(tvbuff_t *tvb, int offset, static const char * mrp_Prio2msg(guint16 prio) { -if (prio == 0x0000) - return(" Highest priority redundancy manager"); -if ((prio >= 0x1000) && (prio <= 0x7000)) - return(" High priorities"); -if (prio == 0x8000) - return(" Default priority for redundancy manager"); -if ((prio >= 0x8001) && (prio <= 0x8FFF)) - return(" Low priorities for redundancy manager"); -if ((prio >= 0x9000) && (prio <= 0x9FFF)) - return(" High priorities for redundancy manager (auto)"); -if (prio == 0xA000) - return(" Default priority for redundancy manager (auto)"); -if ((prio >= 0xA001) && (prio <= 0xF000)) - return(" Low priorities for redundancy manager (auto)"); -if (prio ==0xFFFF) - return(" Lowest priority for redundancy manager (auto)"); + if (prio == 0x0000) + return(" Highest priority redundancy manager"); + if ((prio >= 0x1000) && (prio <= 0x7000)) + return(" High priorities"); + if (prio == 0x8000) + return(" Default priority for redundancy manager"); + if ((prio >= 0x8001) && (prio <= 0x8FFF)) + return(" Low priorities for redundancy manager"); + if ((prio >= 0x9000) && (prio <= 0x9FFF)) + return(" High priorities for redundancy manager (auto)"); + if (prio == 0xA000) + return(" Default priority for redundancy manager (auto)"); + if ((prio >= 0xA001) && (prio <= 0xF000)) + return(" Low priorities for redundancy manager (auto)"); + if (prio ==0xFFFF) + return(" Lowest priority for redundancy manager (auto)"); return(" Reserved"); } |