diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2014-07-29 22:46:32 -0400 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2014-07-30 02:56:41 +0000 |
commit | 054bff4f273d6552cb75034d5ca42b8a9b859bd0 (patch) | |
tree | a6d8a044d0db5b56e331a61777795bd946de8506 /epan/to_str.c | |
parent | 50c10c095775bd05ed25b50f8aa8224080eea428 (diff) |
Fix up some white space.
Change-Id: Ie8f1006d6b3a27fe0c8187ce99051c09dea09b66
(cherry picked from commit a3a5c33dad8669e37502f2ce4d0687f7ff7e87a1)
Reviewed-on: https://code.wireshark.org/review/3257
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Diffstat (limited to 'epan/to_str.c')
-rw-r--r-- | epan/to_str.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/epan/to_str.c b/epan/to_str.c index 2fc19a8c7d..b293d0ff40 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -236,7 +236,7 @@ bytes_to_ep_str(const guint8 *bd, int bd_len) { cur_ptr = bytes_to_hexstr(cur, bd, bd_len); /* max MAX_BYTE_STR_LEN bytes */ if (truncated) - cur_ptr = g_stpcpy(cur_ptr, "..."); /* 3 bytes */ + cur_ptr = g_stpcpy(cur_ptr, "..."); /* 3 bytes */ *cur_ptr = '\0'; /* 1 byte */ return cur; @@ -265,7 +265,7 @@ bytes_to_ep_str_punct(const guint8 *bd, int bd_len, gchar punct) { cur_ptr = bytes_to_hexstr_punct(cur, bd, bd_len, punct); /* max MAX_BYTE_STR_LEN-1 bytes */ if (truncated) { - *cur_ptr++ = punct; /* 1 byte */ + *cur_ptr++ = punct; /* 1 byte */ cur_ptr = g_stpcpy(cur_ptr, "..."); /* 3 bytes */ } @@ -277,13 +277,13 @@ static int guint32_to_str_buf_len(const guint32 u) { if (u >= 1000000000)return 10; if (u >= 100000000) return 9; - if (u >= 10000000) return 8; - if (u >= 1000000) return 7; - if (u >= 100000) return 6; - if (u >= 10000) return 5; - if (u >= 1000) return 4; - if (u >= 100) return 3; - if (u >= 10) return 2; + if (u >= 10000000) return 8; + if (u >= 1000000) return 7; + if (u >= 100000) return 6; + if (u >= 10000) return 5; + if (u >= 1000) return 4; + if (u >= 100) return 3; + if (u >= 10) return 2; return 1; } @@ -1106,9 +1106,9 @@ gchar* guid_to_str_buf(const e_guid_t *guid, gchar *buf, int buf_len) { /* 37 bytes */ tempptr = dword_to_hex(tempptr, guid->data1); /* 8 bytes */ *tempptr++ = '-'; /* 1 byte */ - tempptr = word_to_hex(tempptr, guid->data2); /* 4 bytes */ + tempptr = word_to_hex(tempptr, guid->data2); /* 4 bytes */ *tempptr++ = '-'; /* 1 byte */ - tempptr = word_to_hex(tempptr, guid->data3); /* 4 bytes */ + tempptr = word_to_hex(tempptr, guid->data3); /* 4 bytes */ *tempptr++ = '-'; /* 1 byte */ tempptr = bytes_to_hexstr(tempptr, &guid->data4[0], 2); /* 4 bytes */ *tempptr++ = '-'; /* 1 byte */ @@ -1136,7 +1136,7 @@ const gchar* port_type_to_str (port_type type) { case PT_I2C: return "I2C"; case PT_IBQP: return "IBQP"; case PT_BLUETOOTH: return "BLUETOOTH"; - default: return "[Unknown]"; + default: return "[Unknown]"; } } |