aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-02-25 15:42:35 -0500
committerBill Meier <wmeier@newsguy.com>2014-02-25 20:46:49 +0000
commit11b5c15fdb815a2af400bfddef944dbac41a434a (patch)
treee7217ebcff4d4d9f7f95d0342b6776547e5537c3 /epan
parentc55c57ad72acda8cbce2841bc237f966bad5ae5b (diff)
Remove trailing whitespace
Change-Id: I8116f63ff88687c8db3fd6e8e23b22ab2f759af0 Reviewed-on: https://code.wireshark.org/review/385 Reviewed-by: Bill Meier <wmeier@newsguy.com> Tested-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/addr_resolv.c4
-rw-r--r--epan/addr_resolv.h2
-rw-r--r--epan/app_mem_usage.c4
-rw-r--r--epan/app_mem_usage.h2
-rw-r--r--epan/arcnet_pids.h4
-rw-r--r--epan/asn1.c6
-rw-r--r--epan/asn1.h36
-rw-r--r--epan/conversation.c4
-rw-r--r--epan/crc16-tvb.c4
-rw-r--r--epan/crc16-tvb.h6
-rw-r--r--epan/crc32-tvb.h8
-rw-r--r--epan/crypt/airpdcap_system.h2
-rw-r--r--epan/crypt/airpdcap_user.h2
-rw-r--r--epan/decode_as.h2
-rw-r--r--epan/dfilter/dfilter-macro.h6
-rw-r--r--epan/dfilter/dfunctions.c12
-rw-r--r--epan/dfilter/dfunctions.h2
-rw-r--r--epan/dfilter/dfvm.c2
-rw-r--r--epan/dfilter/drange.c2
-rw-r--r--epan/dfilter/gencode.h6
-rw-r--r--epan/dissector_filters.h2
-rw-r--r--epan/dtd.h6
-rw-r--r--epan/dtd_parse.h8
-rw-r--r--epan/ex-opt.c40
-rw-r--r--epan/expert.c2
-rw-r--r--epan/expert.h4
-rw-r--r--epan/exported_pdu.c2
-rw-r--r--epan/exported_pdu.h10
-rw-r--r--epan/follow.c18
-rw-r--r--epan/ftypes/ftype-guid.c8
-rw-r--r--epan/ftypes/ftype-ipv6.c2
-rw-r--r--epan/funnel.c4
-rw-r--r--epan/garrayfix.h6
-rw-r--r--epan/gcp.h4
-rw-r--r--epan/golay.c10
-rw-r--r--epan/next_tvb.h4
-rw-r--r--epan/oids.c6
-rw-r--r--epan/packet.c4
-rw-r--r--epan/prefs.c8
-rw-r--r--epan/prefs.h12
-rw-r--r--epan/proto.h2
-rw-r--r--epan/range.c8
-rw-r--r--epan/reassemble.c14
-rw-r--r--epan/reassemble.h4
-rw-r--r--epan/reassemble_test.c4
-rw-r--r--epan/reedsolomon.c18
-rw-r--r--epan/sigcomp-udvm.h8
-rw-r--r--epan/sigcomp_state_hdlr.h10
-rw-r--r--epan/stat_cmd_args.h6
-rw-r--r--epan/stats_tree.c2
-rw-r--r--epan/stats_tree_priv.h40
-rw-r--r--epan/stream.c2
-rw-r--r--epan/strutil.c16
-rw-r--r--epan/t35.c36
-rw-r--r--epan/t35.h2
-rw-r--r--epan/tap-voip.h6
-rw-r--r--epan/tpg.c4
-rw-r--r--epan/tpg.h2
-rw-r--r--epan/tvbuff.c4
-rw-r--r--epan/uat-int.h6
-rw-r--r--epan/value_string.h2
-rw-r--r--epan/wslua/wslua.h16
-rw-r--r--epan/wslua/wslua_field.c16
-rw-r--r--epan/wslua/wslua_struct.c12
-rw-r--r--epan/wslua/wslua_tree.c2
-rw-r--r--epan/wslua/wslua_tvb.c4
66 files changed, 261 insertions, 261 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c
index c0ccb6ea99..35bbd2d303 100644
--- a/epan/addr_resolv.c
+++ b/epan/addr_resolv.c
@@ -302,10 +302,10 @@ static hashether_t *add_eth_name(const guint8 *addr, const gchar *name);
static void add_serv_port_cb(const guint32 port);
-/* http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx#existing
+/* http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx#existing
* One-at-a-Time hash
*/
-static guint32
+static guint32
ipv6_oat_hash(gconstpointer key)
{
int len = 16;
diff --git a/epan/addr_resolv.h b/epan/addr_resolv.h
index dd06b63821..3999be2266 100644
--- a/epan/addr_resolv.h
+++ b/epan/addr_resolv.h
@@ -74,7 +74,7 @@ typedef struct serv_port {
} serv_port_t;
/*
- *
+ *
*/
#define DUMMY_ADDRESS_ENTRY 1<<0
#define TRIED_RESOLVE_ADDRESS 1<<1
diff --git a/epan/app_mem_usage.c b/epan/app_mem_usage.c
index 55093ae847..7bc5a20079 100644
--- a/epan/app_mem_usage.c
+++ b/epan/app_mem_usage.c
@@ -1,4 +1,4 @@
-/*
+/*
* app_mem_usage.c
*
* $Id$
@@ -161,7 +161,7 @@ static const ws_mem_usage_t total_usage = { "Total", get_total_mem_used_by_app,
static const ws_mem_usage_t rss_usage = { "RSS", get_rss_mem_used_by_app, NULL };
#endif
-static const ws_mem_usage_t *memory_components[MAX_COMPONENTS] = {
+static const ws_mem_usage_t *memory_components[MAX_COMPONENTS] = {
#ifdef get_total_mem_used_by_app
&total_usage,
#endif
diff --git a/epan/app_mem_usage.h b/epan/app_mem_usage.h
index fa320984ba..064313d6e5 100644
--- a/epan/app_mem_usage.h
+++ b/epan/app_mem_usage.h
@@ -1,4 +1,4 @@
-/*
+/*
* app_mem_usage.h
*
* $Id$
diff --git a/epan/arcnet_pids.h b/epan/arcnet_pids.h
index 59016331a4..eea647b48e 100644
--- a/epan/arcnet_pids.h
+++ b/epan/arcnet_pids.h
@@ -12,12 +12,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/epan/asn1.c b/epan/asn1.c
index 4ff44bb28e..d7a90d19fb 100644
--- a/epan/asn1.c
+++ b/epan/asn1.c
@@ -176,7 +176,7 @@ void rose_ctx_clean_data(rose_ctx_t *rctx) {
asn1_ctx_t *get_asn1_ctx(void *ptr) {
asn1_ctx_t *actx = (asn1_ctx_t*)ptr;
- if (!asn1_ctx_check_signature(actx))
+ if (!asn1_ctx_check_signature(actx))
actx = NULL;
return actx;
@@ -186,13 +186,13 @@ rose_ctx_t *get_rose_ctx(void *ptr) {
rose_ctx_t *rctx = (rose_ctx_t*)ptr;
asn1_ctx_t *actx = (asn1_ctx_t*)ptr;
- if (!asn1_ctx_check_signature(actx))
+ if (!asn1_ctx_check_signature(actx))
actx = NULL;
if (actx)
rctx = actx->rose_ctx;
- if (!rose_ctx_check_signature(rctx))
+ if (!rose_ctx_check_signature(rctx))
rctx = NULL;
return rctx;
diff --git a/epan/asn1.h b/epan/asn1.h
index b6d46bfbd2..5dd63c0f3d 100644
--- a/epan/asn1.h
+++ b/epan/asn1.h
@@ -92,11 +92,11 @@ typedef struct _asn1_ctx_t {
tvbuff_t *data_value_descriptor;
const char *direct_reference;
gint32 indirect_reference;
- gint encoding;
- /*
- 0 : single-ASN1-type,
- 1 : octet-aligned,
- 2 : arbitrary
+ gint encoding;
+ /*
+ 0 : single-ASN1-type,
+ 1 : octet-aligned,
+ 2 : arbitrary
*/
tvbuff_t *single_asn1_type;
tvbuff_t *octet_aligned;
@@ -120,9 +120,9 @@ typedef struct _asn1_ctx_t {
gboolean data_value_descr_present;
tvbuff_t *data_value_descriptor;
gint identification;
- /*
- 0 : syntaxes,
- 1 : syntax,
+ /*
+ 0 : syntaxes,
+ 1 : syntax,
2 : presentation-context-id,
3 : context-negotiation,
4 : transfer-syntax,
@@ -149,11 +149,11 @@ typedef struct _asn1_ctx_t {
typedef struct _rose_ctx_t {
guint32 signature;
dissector_table_t arg_global_dissector_table;
- dissector_table_t arg_local_dissector_table;
+ dissector_table_t arg_local_dissector_table;
dissector_table_t res_global_dissector_table;
- dissector_table_t res_local_dissector_table;
+ dissector_table_t res_local_dissector_table;
dissector_table_t err_global_dissector_table;
- dissector_table_t err_local_dissector_table;
+ dissector_table_t err_local_dissector_table;
/* filling in description into tree, info column, any buffer */
int apdu_depth;
gboolean fillin_info;
@@ -161,17 +161,17 @@ typedef struct _rose_ctx_t {
gsize fillin_buf_size;
struct { /* "dynamic" data */
gint pdu;
- /*
- 1 : invoke,
- 2 : returnResult,
+ /*
+ 1 : invoke,
+ 2 : returnResult,
3 : returnError,
4 : reject
*/
- gint code;
- /*
+ gint code;
+ /*
-1 : none (optional in ReturnResult)
- 0 : local,
- 1 : global
+ 0 : local,
+ 1 : global
*/
gint32 code_local;
const char *code_global;
diff --git a/epan/conversation.c b/epan/conversation.c
index 7d9375d169..8d557315bb 100644
--- a/epan/conversation.c
+++ b/epan/conversation.c
@@ -180,7 +180,7 @@ conversation_create_from_template(conversation_t *conversation, const address *a
* Compute the hash value for two given address/port pairs if the match
* is to be exact.
*/
-/* http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx#existing
+/* http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx#existing
* One-at-a-Time hash
*/
static guint
@@ -691,7 +691,7 @@ conversation_new(const guint32 setup_frame, const address *addr1, const address
new_key->port1 = port1;
new_key->port2 = port2;
- conversation = se_new(conversation_t);
+ conversation = se_new(conversation_t);
memset(conversation, 0, sizeof(conversation_t));
conversation->index = new_index;
diff --git a/epan/crc16-tvb.c b/epan/crc16-tvb.c
index b3f98179f8..40fac739e7 100644
--- a/epan/crc16-tvb.c
+++ b/epan/crc16-tvb.c
@@ -99,7 +99,7 @@ guint16 crc16_plain_tvb_offset(tvbuff_t *tvb, guint offset, guint len)
buf = tvb_get_ptr(tvb, offset, len);
crc = crc16_plain_update(crc, buf, len);
-
+
return crc16_plain_finalize(crc);
}
@@ -111,7 +111,7 @@ guint16 crc16_plain_tvb_offset_seed(tvbuff_t *tvb, guint offset, guint len, guin
buf = tvb_get_ptr(tvb, offset, len);
crc = crc16_plain_update(crc, buf, len);
-
+
return crc16_plain_finalize(crc);
}
diff --git a/epan/crc16-tvb.h b/epan/crc16-tvb.h
index bd6cec2512..30bf03cd7a 100644
--- a/epan/crc16-tvb.h
+++ b/epan/crc16-tvb.h
@@ -108,12 +108,12 @@ WS_DLL_PUBLIC guint16 crc16_plain_tvb_offset_seed(tvbuff_t *tvb, guint offset, g
/** Compute CRC16 checksum of a tv buffer using the parameters
* Width = 16 bits
* Poly = 0x9949
- * Reflection = true
- * Algorithm = table-driven
+ * Reflection = true
+ * Algorithm = table-driven
@param tvb The tv buffer containing the data.
@param offset The offset into the tv buffer.
@param len The number of bytes to include in the computation.
- @param seed The seed to use.
+ @param seed The seed to use.
@return The CRC16 checksum. */
WS_DLL_PUBLIC guint16 crc16_0x9949_tvb_offset_seed(tvbuff_t *tvb, guint offset, guint len, guint16 seed);
diff --git a/epan/crc32-tvb.h b/epan/crc32-tvb.h
index c08919486a..e5422a4aa4 100644
--- a/epan/crc32-tvb.h
+++ b/epan/crc32-tvb.h
@@ -103,14 +103,14 @@ WS_DLL_PUBLIC guint32 crc32_mpeg2_tvb_offset_seed(tvbuff_t *tvb, guint offset,
/** Compute CRC32 checksum of a tv buffer using the parameters
* Width = 32 bits
* Poly = 0x0AA725CF
- * Reflection = true
- * Algorithm = table-driven
+ * Reflection = true
+ * Algorithm = table-driven
@param tvb The tv buffer containing the data.
@param offset The offset into the tv buffer.
@param len The number of bytes to include in the computation.
- @param seed The seed to use.
+ @param seed The seed to use.
@return The CRC32 checksum. */
-WS_DLL_PUBLIC guint32 crc32_0x0AA725CF_tvb_offset_seed(tvbuff_t *tvb,
+WS_DLL_PUBLIC guint32 crc32_0x0AA725CF_tvb_offset_seed(tvbuff_t *tvb,
guint offset, guint len, guint32 seed);
#ifdef __cplusplus
diff --git a/epan/crypt/airpdcap_system.h b/epan/crypt/airpdcap_system.h
index 7833f51909..810f5960f1 100644
--- a/epan/crypt/airpdcap_system.h
+++ b/epan/crypt/airpdcap_system.h
@@ -126,7 +126,7 @@ typedef struct _AIRPDCAP_SEC_ASSOCIATION_ID {
} AIRPDCAP_SEC_ASSOCIATION_ID, *PAIRPDCAP_SEC_ASSOCIATION_ID;
typedef struct _AIRPDCAP_SEC_ASSOCIATION {
- /* This is for reassociations. A linked list of old security
+ /* This is for reassociations. A linked list of old security
* associations is kept. GCS
*/
struct _AIRPDCAP_SEC_ASSOCIATION* next;
diff --git a/epan/crypt/airpdcap_user.h b/epan/crypt/airpdcap_user.h
index fa7ec714cb..ecb0cfa08e 100644
--- a/epan/crypt/airpdcap_user.h
+++ b/epan/crypt/airpdcap_user.h
@@ -211,7 +211,7 @@ typedef struct _AIRPDCAP_KEYS_COLLECTION {
* - 01020304... (WPA + 256-bit raw key)
* @param key_type [IN] Type of key used for string. Possibilities include:
* - AIRPDCAP_KEY_TYPE_WEP (40/64-bit and 104/128-bit WEP)
- * - AIRPDCAP_KEY_TYPE_WPA_PWD (WPA + plaintext password + "wildcard" SSID or
+ * - AIRPDCAP_KEY_TYPE_WPA_PWD (WPA + plaintext password + "wildcard" SSID or
* WPA + plaintext password + specific SSID)
* - AIRPDCAP_KEY_TYPE_WPA_PSK (WPA + 256-bit raw key)
* @return A pointer to a freshly-g_malloc()ed decryption_key_t struct on
diff --git a/epan/decode_as.h b/epan/decode_as.h
index 248cdf23bf..423ada8be8 100644
--- a/epan/decode_as.h
+++ b/epan/decode_as.h
@@ -34,7 +34,7 @@
extern "C" {
#endif /* __cplusplus */
-/** @file
+/** @file
*/
#define MAX_DECODE_AS_PROMPT_LEN 200
diff --git a/epan/dfilter/dfilter-macro.h b/epan/dfilter/dfilter-macro.h
index 9e1700d336..453c1429aa 100644
--- a/epan/dfilter/dfilter-macro.h
+++ b/epan/dfilter/dfilter-macro.h
@@ -5,17 +5,17 @@
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 2001 Gerald Combs
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/epan/dfilter/dfunctions.c b/epan/dfilter/dfunctions.c
index 90bd167866..1be94d0230 100644
--- a/epan/dfilter/dfunctions.c
+++ b/epan/dfilter/dfunctions.c
@@ -2,7 +2,7 @@
* $Id$
*
* Wireshark - Network traffic analyzer
- *
+ *
* Copyright 2006 Gilbert Ramirez <gram@alumni.rice.edu>
*
* This program is free software; you can redistribute it and/or
@@ -62,7 +62,7 @@ string_walk(GList* arg1list, GList **retval, gchar(*conv_func)(gchar))
arg1 = arg1list;
while (arg1) {
- arg_fvalue = (fvalue_t *)arg1->data;
+ arg_fvalue = (fvalue_t *)arg1->data;
switch (fvalue_type_ftenum(arg_fvalue)) {
case FT_STRING:
case FT_STRINGZ:
@@ -82,7 +82,7 @@ string_walk(GList* arg1list, GList **retval, gchar(*conv_func)(gchar))
default:
break;
- }
+ }
arg1 = arg1->next;
}
@@ -113,7 +113,7 @@ df_func_len(GList* arg1list, GList *arg2junk _U_, GList **retval)
arg1 = arg1list;
while (arg1) {
- arg_fvalue = (fvalue_t *)arg1->data;
+ arg_fvalue = (fvalue_t *)arg1->data;
switch (fvalue_type_ftenum(arg_fvalue)) {
case FT_STRING:
case FT_STRINGZ:
@@ -127,7 +127,7 @@ df_func_len(GList* arg1list, GList *arg2junk _U_, GList **retval)
default:
break;
- }
+ }
arg1 = arg1->next;
}
@@ -144,7 +144,7 @@ df_func_size(GList* arg1list, GList *arg2junk _U_, GList **retval)
arg1 = arg1list;
while (arg1) {
- arg_fvalue = (fvalue_t *)arg1->data;
+ arg_fvalue = (fvalue_t *)arg1->data;
ft_len = fvalue_new(FT_UINT32);
fvalue_set_uinteger(ft_len, fvalue_length(arg_fvalue));
diff --git a/epan/dfilter/dfunctions.h b/epan/dfilter/dfunctions.h
index 2483d732ad..0289ca94cf 100644
--- a/epan/dfilter/dfunctions.h
+++ b/epan/dfilter/dfunctions.h
@@ -2,7 +2,7 @@
* $Id$
*
* Wireshark - Network traffic analyzer
- *
+ *
* Copyright 2006 Gilbert Ramirez <gram@alumni.rice.edu>
*
* This program is free software; you can redistribute it and/or
diff --git a/epan/dfilter/dfvm.c b/epan/dfilter/dfvm.c
index a2500e1ad3..3385bcabb5 100644
--- a/epan/dfilter/dfvm.c
+++ b/epan/dfilter/dfvm.c
@@ -99,7 +99,7 @@ dfvm_dump(FILE *f, dfilter_t *df)
char *value_str;
GSList *range_list;
drange_node *range_item;
-
+
/* First dump the constant initializations */
fprintf(f, "Constants:\n");
length = df->consts->len;
diff --git a/epan/dfilter/drange.c b/epan/dfilter/drange.c
index d33dfc5e61..eb972b4d2d 100644
--- a/epan/dfilter/drange.c
+++ b/epan/dfilter/drange.c
@@ -48,7 +48,7 @@ drange_node_dup(drange_node *org)
if (!org)
return NULL;
-
+
new_range_node = g_new(drange_node,1);
new_range_node->start_offset = org->start_offset;
new_range_node->length = org->length;
diff --git a/epan/dfilter/gencode.h b/epan/dfilter/gencode.h
index ae2b027b9b..3260ce61b3 100644
--- a/epan/dfilter/gencode.h
+++ b/epan/dfilter/gencode.h
@@ -5,17 +5,17 @@
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 2001 Gerald Combs
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/epan/dissector_filters.h b/epan/dissector_filters.h
index 6f383888bc..819e317a42 100644
--- a/epan/dissector_filters.h
+++ b/epan/dissector_filters.h
@@ -31,7 +31,7 @@
extern "C" {
#endif /* __cplusplus */
-/** @file
+/** @file
*/
/** callback function definition: is a filter available for this packet? */
diff --git a/epan/dtd.h b/epan/dtd.h
index 5d1a6e2740..b6bda1160c 100644
--- a/epan/dtd.h
+++ b/epan/dtd.h
@@ -1,7 +1,7 @@
/*
* dtd.h
*
- * XML dissector for Wireshark
+ * XML dissector for Wireshark
* DTD import declarations
*
* Copyright 2005, Luis E. Garcia Ontanon <luis@ontanon.org>
@@ -16,12 +16,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/epan/dtd_parse.h b/epan/dtd_parse.h
index d00ad01b4b..11011c726f 100644
--- a/epan/dtd_parse.h
+++ b/epan/dtd_parse.h
@@ -1,5 +1,5 @@
/* dtd_parse.h
-* an XML dissector for Wireshark
+* an XML dissector for Wireshark
* header file to declare functions defined in lexer and used in parser,
* or vice versa
*
@@ -15,12 +15,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
-*
+*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-*
+*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -29,5 +29,5 @@
extern void DtdParse(void*,int,dtd_token_data_t*,dtd_build_data_t*);
extern void *DtdParseAlloc(void *(*)(gsize));
extern void DtdParseFree( void*, void(*)(void*) );
-extern void DtdParseTrace(FILE *TraceFILE, char *zTracePrompt);
+extern void DtdParseTrace(FILE *TraceFILE, char *zTracePrompt);
extern int Dtd_Parse_lex(void);
diff --git a/epan/ex-opt.c b/epan/ex-opt.c
index 9922078432..ec9dd9dc41 100644
--- a/epan/ex-opt.c
+++ b/epan/ex-opt.c
@@ -1,6 +1,6 @@
/*
* ex-opt.c
- *
+ *
* Extension command line options
*
* (c) 2006, Luis E. Garcia Ontanon <luis@ontanon.org>
@@ -23,7 +23,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
@@ -35,15 +35,15 @@ static GHashTable* ex_opts = NULL;
gboolean ex_opt_add(const gchar* optarg) {
gchar** splitted;
-
- if (!ex_opts)
+
+ if (!ex_opts)
ex_opts = g_hash_table_new(g_str_hash,g_str_equal);
-
+
splitted = g_strsplit(optarg,":",2);
-
+
if (splitted[0] && splitted[1]) {
GPtrArray* this_opts = (GPtrArray *)g_hash_table_lookup(ex_opts,splitted[0]);
-
+
if (this_opts) {
g_ptr_array_add(this_opts,splitted[1]);
g_free(splitted[0]);
@@ -52,9 +52,9 @@ gboolean ex_opt_add(const gchar* optarg) {
g_ptr_array_add(this_opts,splitted[1]);
g_hash_table_insert(ex_opts,splitted[0],this_opts);
}
-
+
g_free(splitted);
-
+
return TRUE;
} else {
g_strfreev(splitted);
@@ -64,12 +64,12 @@ gboolean ex_opt_add(const gchar* optarg) {
gint ex_opt_count(const gchar* key) {
GPtrArray* this_opts;
-
+
if (! ex_opts)
return 0;
-
+
this_opts = (GPtrArray *)g_hash_table_lookup(ex_opts,key);
-
+
if (this_opts) {
return this_opts->len;
} else {
@@ -79,12 +79,12 @@ gint ex_opt_count(const gchar* key) {
const gchar* ex_opt_get_nth(const gchar* key, guint index) {
GPtrArray* this_opts;
-
+
if (! ex_opts)
return 0;
-
+
this_opts = (GPtrArray *)g_hash_table_lookup(ex_opts,key);
-
+
if (this_opts) {
if (this_opts->len > index) {
return (const gchar *)g_ptr_array_index(this_opts,index);
@@ -95,21 +95,21 @@ const gchar* ex_opt_get_nth(const gchar* key, guint index) {
} else {
return NULL;
}
-
+
}
extern const gchar* ex_opt_get_next(const gchar* key) {
GPtrArray* this_opts;
-
+
if (! ex_opts)
return 0;
-
+
this_opts = (GPtrArray *)g_hash_table_lookup(ex_opts,key);
-
+
if (this_opts) {
if (this_opts->len)
return (const gchar *)g_ptr_array_remove_index(this_opts,0);
- else
+ else
return NULL;
} else {
return NULL;
diff --git a/epan/expert.c b/epan/expert.c
index bca9de9785..f05f0fe255 100644
--- a/epan/expert.c
+++ b/epan/expert.c
@@ -324,7 +324,7 @@ expert_set_info_vformat(packet_info *pinfo, proto_item *pi, int group, int sever
expert_set_item_flags(pi, group, severity);
}
- if ((pi == NULL) || (PITEM_FINFO(pi) == NULL) ||
+ if ((pi == NULL) || (PITEM_FINFO(pi) == NULL) ||
((guint)severity >= FI_GET_FLAG(PITEM_FINFO(pi), PI_SEVERITY_MASK))) {
col_add_str(pinfo->cinfo, COL_EXPERT, val_to_str(severity, expert_severity_vals, "Unknown (%u)"));
}
diff --git a/epan/expert.h b/epan/expert.h
index 91216d844a..057d970e9f 100644
--- a/epan/expert.h
+++ b/epan/expert.h
@@ -143,7 +143,7 @@ expert_add_info_format(packet_info *pinfo, proto_item *pi, expert_field *eiindex
/** Add an expert info associated with some byte data
Add an expert info tree to a protocol item using registered expert info item.
- This function is intended to replace places where
+ This function is intended to replace places where
proto_tree_add_text or proto_tree_add_none_format + expert_add_info
would be used.
@param tree Current protocol item (or NULL)
@@ -162,7 +162,7 @@ proto_tree_add_expert(proto_tree *tree, packet_info *pinfo, expert_field* eiinde
/** Add an expert info associated with some byte data
Add an expert info tree to a protocol item, using registered expert info item,
but with a formatted message.
- This function is intended to replace places where
+ This function is intended to replace places where
proto_tree_add_text or proto_tree_add_none_format + expert_add_info_format
would be used.
@param tree Current protocol item (or NULL)
diff --git a/epan/exported_pdu.c b/epan/exported_pdu.c
index b8ea067a7d..9f0286b90d 100644
--- a/epan/exported_pdu.c
+++ b/epan/exported_pdu.c
@@ -1,4 +1,4 @@
-/*
+/*
* exported_pdu.c
* exported_pdu helper functions
* Copyright 2013, Anders Broman <anders-broman@ericsson.com>
diff --git a/epan/exported_pdu.h b/epan/exported_pdu.h
index 34d136a54b..1a14adb6db 100644
--- a/epan/exported_pdu.h
+++ b/epan/exported_pdu.h
@@ -1,4 +1,4 @@
-/*
+/*
* exported_pdu.h
* Routines for exported_pdu dissection
* Copyright 2013, Anders Broman <anders-broman@ericsson.com>
@@ -72,10 +72,10 @@
#define EXP_PDU_TAG_END_OF_OPT 0 /**< End-of-options Tag. */
/* 1 - 9 reserved */
#define EXP_PDU_TAG_OPTIONS_LENGTH 10 /**< Total length of the options excluding this TLV */
-#define EXP_PDU_TAG_LINKTYPE 11 /**< The value part is the linktype value defined by tcpdump
+#define EXP_PDU_TAG_LINKTYPE 11 /**< The value part is the linktype value defined by tcpdump
* http://www.tcpdump.org/linktypes.html
- */
-#define EXP_PDU_TAG_PROTO_NAME 12 /**< The value part should be an ASCII non NULL terminated string
+ */
+#define EXP_PDU_TAG_PROTO_NAME 12 /**< The value part should be an ASCII non NULL terminated string
* of the short protocol name used by Wireshark e.g "sip"
* Will be used to call the next dissector.
*/
@@ -140,7 +140,7 @@ typedef struct _exp_pdu_data_t {
*
* The tags in the tag buffer SHOULD be added in numerical order.
*/
-WS_DLL_PUBLIC exp_pdu_data_t *load_export_pdu_tags(packet_info *pinfo,
+WS_DLL_PUBLIC exp_pdu_data_t *load_export_pdu_tags(packet_info *pinfo,
const char* proto_name, int wtap_encap, guint32 wanted_exp_tags);
#endif /* EXPORTED_PDU_H */
diff --git a/epan/follow.c b/epan/follow.c
index fe17c1740c..1ca59c8cff 100644
--- a/epan/follow.c
+++ b/epan/follow.c
@@ -108,7 +108,7 @@ build_follow_conv_filter( packet_info *pi ) {
} else if (!strcmp(proto_name, "udp")) {
is_udp = TRUE;
}
-
+
protos = wmem_list_frame_next(protos);
}
@@ -249,8 +249,8 @@ static guint src_port[2] = { 0, 0 };
void
reassemble_tcp( guint32 tcp_stream, guint32 sequence, guint32 acknowledgement,
- guint32 length, const char* data, guint32 data_length,
- int synflag, address *net_src, address *net_dst,
+ guint32 length, const char* data, guint32 data_length,
+ int synflag, address *net_src, address *net_dst,
guint srcport, guint dstport, guint32 packet_num) {
guint8 srcx[MAX_IPADDR_LEN], dstx[MAX_IPADDR_LEN];
int src_index, j, first = 0, len;
@@ -337,7 +337,7 @@ reassemble_tcp( guint32 tcp_stream, guint32 sequence, guint32 acknowledgement,
/* Before adding data for this flow to the data_out_file, check whether
* this frame acks fragments that were already seen. This happens when
- * frames are not in the capture file, but were actually seen by the
+ * frames are not in the capture file, but were actually seen by the
* receiving host (Fixes bug 592).
*/
if( frags[1-src_index] ) {
@@ -453,7 +453,7 @@ check_fragments( int idx, tcp_stream_chunk *sc, guint32 acknowledged ) {
guint32 new_pos;
/* this one has more than we have seen. let's get the
- payload that we have not seen. This happens when
+ payload that we have not seen. This happens when
part of this frame has been retransmitted */
new_pos = seq[idx] - current->seq;
@@ -464,10 +464,10 @@ check_fragments( int idx, tcp_stream_chunk *sc, guint32 acknowledged ) {
}
seq[idx] += (current->len - new_pos);
- }
+ }
/* Remove the fragment from the list as the "new" part of it
- * has been processed or its data has been seen already in
+ * has been processed or its data has been seen already in
* another packet. */
if( prev ) {
prev->next = current->next;
@@ -511,7 +511,7 @@ check_fragments( int idx, tcp_stream_chunk *sc, guint32 acknowledged ) {
seq[idx] = lowest_seq;
return 1;
}
- }
+ }
return 0;
}
@@ -551,7 +551,7 @@ write_packet_data( int idx, tcp_stream_chunk *sc, const char *data )
ret = fwrite( sc, 1, sizeof(tcp_stream_chunk), data_out_file );
DISSECTOR_ASSERT(sizeof(tcp_stream_chunk) == ret);
-
+
ret = fwrite( data, 1, sc->dlen, data_out_file );
DISSECTOR_ASSERT(sc->dlen == ret);
diff --git a/epan/ftypes/ftype-guid.c b/epan/ftypes/ftype-guid.c
index 205ffc453d..68ba119d48 100644
--- a/epan/ftypes/ftype-guid.c
+++ b/epan/ftypes/ftype-guid.c
@@ -62,17 +62,17 @@ get_guid(const char *s, e_guid_t *guid)
return FALSE;
}
}
-
+
p = s;
- strncpy(digits, p, 8);
+ strncpy(digits, p, 8);
digits[8] = '\0';
guid->data1 = (guint32)strtoul(digits, NULL, 16);
p += 9;
- strncpy(digits, p, 4);
+ strncpy(digits, p, 4);
digits[4] = '\0';
guid->data2 = (guint16)strtoul(digits, NULL, 16);
p += 5;
- strncpy(digits, p, 4);
+ strncpy(digits, p, 4);
digits[4] = '\0';
guid->data3 = (guint16)strtoul(digits, NULL, 16);
p += 5;
diff --git a/epan/ftypes/ftype-ipv6.c b/epan/ftypes/ftype-ipv6.c
index 47a6624319..42ed6d1ff0 100644
--- a/epan/ftypes/ftype-ipv6.c
+++ b/epan/ftypes/ftype-ipv6.c
@@ -99,7 +99,7 @@ value_get(fvalue_t *fv)
return fv->value.ipv6.addr.bytes;
}
-static const guint8 bitmasks[9] =
+static const guint8 bitmasks[9] =
{ 0x00, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff };
static gint
diff --git a/epan/funnel.c b/epan/funnel.c
index 13cf9743db..26b2874f12 100644
--- a/epan/funnel.c
+++ b/epan/funnel.c
@@ -23,7 +23,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
@@ -57,7 +57,7 @@ void funnel_register_menu(const char *name,
m->callback_data = callback_data;
m->retap = retap;
m->next = NULL;
-
+
if (!menus) {
menus = m;
} else {
diff --git a/epan/garrayfix.h b/epan/garrayfix.h
index 70a4bedcbd..906bae34ba 100644
--- a/epan/garrayfix.h
+++ b/epan/garrayfix.h
@@ -9,17 +9,17 @@
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 2007 Gerald Combs
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/epan/gcp.h b/epan/gcp.h
index 71859b49e2..9383d5048e 100644
--- a/epan/gcp.h
+++ b/epan/gcp.h
@@ -148,7 +148,7 @@ typedef enum _gcp_wildcard_t {
typedef struct _gcp_term_t {
const gchar* str;
-
+
const guint8* buffer;
guint len;
@@ -157,7 +157,7 @@ typedef struct _gcp_term_t {
gchar* nsap;
gcp_msg_t* start;
-
+
} gcp_term_t;
typedef struct _gcp_terms_t {
diff --git a/epan/golay.c b/epan/golay.c
index b805700fdf..84c6b0d3a3 100644
--- a/epan/golay.c
+++ b/epan/golay.c
@@ -169,7 +169,7 @@ gint32 golay_errors(guint32 codeword)
syndrome = received_parity ^ (golay_coding(received_data));
w = weight12(syndrome);
-
+
/*
* The properties of the golay code are such that the Hamming distance (ie,
* the minimum distance between codewords) is 8; that means that one bit of
@@ -184,14 +184,14 @@ gint32 golay_errors(guint32 codeword)
if( w <= 3 ) {
return ((gint32) syndrome)<<12;
}
-
+
/* the next thing to try is one error in the data bits.
* we try each bit in turn and see if an error in that bit would have given
* us anything like the parity bits we got. At this point, we tolerate two
* errors in the parity bits, but three or more errors would give a total
* error weight of 4 or more, which means it's actually uncorrectable or
* closer to another codeword. */
-
+
for( i = 0; i<12; i++ ) {
guint error = 1<<i;
guint coding_error = golay_encode_matrix[i];
@@ -237,7 +237,7 @@ gint32 golay_errors(guint32 codeword)
/* uncorrectable error */
return -1;
}
-
+
/* decode a received codeword. Up to 3 errors are corrected for; 4
@@ -249,7 +249,7 @@ gint golay_decode(guint32 w)
guint data = (guint)w & 0xfff;
gint32 errors = golay_errors(w);
guint data_errors;
-
+
if( errors == -1 )
return -1;
data_errors = (guint)errors & 0xfff;
diff --git a/epan/next_tvb.h b/epan/next_tvb.h
index 5e8ca5f04c..f809a17178 100644
--- a/epan/next_tvb.h
+++ b/epan/next_tvb.h
@@ -21,8 +21,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-/* The buffers returned by these functions are all allocated with a
- * packet lifetime or are static buffers and does not have have to be freed.
+/* The buffers returned by these functions are all allocated with a
+ * packet lifetime or are static buffers and does not have have to be freed.
* However, take into account that when the packet dissection
* completes, these buffers will be automatically reclaimed/freed.
* If you need the buffer to remain for a longer scope than packet lifetime
diff --git a/epan/oids.c b/epan/oids.c
index fcc748977e..8d095aa6b6 100644
--- a/epan/oids.c
+++ b/epan/oids.c
@@ -109,7 +109,7 @@ static void prepopulate_oids(void) {
}
}
-
+
static oid_info_t* add_oid(const char* name, oid_kind_t kind, const oid_value_type_t* type, oid_key_t* key, guint oid_len, guint32 *subids) {
guint i = 0;
@@ -1085,7 +1085,7 @@ guint oid_subid2encoded(guint subids_len, guint32* subids, guint8** bytes_p) {
} else {
bytelen += 5;
}
- }
+ }
*bytes_p = b = (guint8 *)ep_alloc(bytelen);
@@ -1107,7 +1107,7 @@ guint oid_subid2encoded(guint subids_len, guint32* subids, guint8** bytes_p) {
case 2: *(b++) = ((subid & 0x00003F80) >> 7) | 0x80;
case 1: *(b++) = subid & 0x0000007F ; break;
}
- }
+ }
return bytelen;
}
diff --git a/epan/packet.c b/epan/packet.c
index e89ab312df..49acde4d25 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -452,7 +452,7 @@ dissect_packet(epan_dissect_t *edt, struct wtap_pkthdr *phdr,
frame_delta_abs_time(edt->session, fd, fd->frame_ref_num, &edt->pi.rel_ts);
/* pkt comment use first user, later from phdr */
- if (fd->flags.has_user_comment)
+ if (fd->flags.has_user_comment)
edt->pi.pkt_comment = epan_get_user_comment(edt->session, fd);
else if (fd->flags.has_phdr_comment)
edt->pi.pkt_comment = phdr->opt_comment;
@@ -517,7 +517,7 @@ dissect_file(epan_dissect_t *edt, struct wtap_pkthdr *phdr,
frame_delta_abs_time(edt->session, fd, fd->frame_ref_num, &edt->pi.rel_ts);
/* pkt comment use first user, later from phdr */
- if (fd->flags.has_user_comment)
+ if (fd->flags.has_user_comment)
edt->pi.pkt_comment = epan_get_user_comment(edt->session, fd);
else if (fd->flags.has_phdr_comment)
edt->pi.pkt_comment = phdr->opt_comment;
diff --git a/epan/prefs.c b/epan/prefs.c
index b4e7dc4dee..73bc2322f2 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -1115,7 +1115,7 @@ prefs_register_uat_preference_qt(module_t *module, const char *name,
pref_t* preference = register_preference(module, name, title, description, PREF_UAT);
preference->varp.uat = uat;
-
+
preference->gui = GUI_QT;
}
@@ -2529,7 +2529,7 @@ prefs_register_modules(void)
"measured. Longer window relative to burst rate resolution increases "
"processing overhead. Will be truncated to a multiple of burst resolution.",
10,&prefs.st_burst_windowlen);
-
+
prefs_register_enum_preference(stats_module, "st_sort_defcolflag",
"Default sort column for stats_tree stats",
"Sets the default column by which stats based on the stats_tree "
@@ -2548,7 +2548,7 @@ prefs_register_modules(void)
"system will be sorted taking case into account. Else the case of the name "
"will be ignored.",
&prefs.st_sort_casesensitve);
-
+
prefs_register_bool_preference(stats_module, "st_sort_rng_nameonly",
"Always sort 'range' nodes by name",
"When selected, the stats_tree nodes representing a range of values "
@@ -2564,7 +2564,7 @@ prefs_register_modules(void)
"the sort direction of the tree. Only effective if \"Always sort "
"'range' nodes by name\" is also selected.",
&prefs.st_sort_rng_fixorder);
-
+
prefs_register_bool_preference(stats_module, "st_sort_showfullname",
"Display the full stats_tree plug-in name",
"When selected, the full name (including menu path) of the stats_tree "
diff --git a/epan/prefs.h b/epan/prefs.h
index 6060c94cbb..97983afbd1 100644
--- a/epan/prefs.h
+++ b/epan/prefs.h
@@ -128,7 +128,7 @@ typedef enum {
pref_current
} pref_source_t;
-/*
+/*
* Update channel.
*/
typedef enum {
@@ -209,7 +209,7 @@ typedef struct _e_prefs {
software_update_channel_e gui_update_channel;
gint gui_update_interval;
gchar *saved_at_version;
- gboolean unknown_prefs; /* unknown or obsolete pref(s) */
+ gboolean unknown_prefs; /* unknown or obsolete pref(s) */
gboolean unknown_colorfilters; /* unknown or obsolete color filter(s) */
guint gui_qt_language; /* Qt Translation language selection */
gboolean gui_packet_editor; /* Enable Packet Editor */
@@ -471,8 +471,8 @@ WS_DLL_PUBLIC void prefs_register_uat_preference_qt(module_t *module,
/*
* Register a color preference. Currently does not have any "GUI Dialog" support
- * so the color data needs to be managed independently. Currently used by the
- * "GUI preferences" to aid in reading/writing the preferences file, but the
+ * so the color data needs to be managed independently. Currently used by the
+ * "GUI preferences" to aid in reading/writing the preferences file, but the
* "data" is still managed by the specific "GUI preferences" dialog.
*/
void prefs_register_color_preference(module_t *module, const char *name,
@@ -480,8 +480,8 @@ void prefs_register_color_preference(module_t *module, const char *name,
/*
* Register a custom preference. Currently does not have any "GUI Dialog" support
- * so data needs to be managed independently. Currently used by the
- * "GUI preferences" to aid in reading/writing the preferences file, but the
+ * so data needs to be managed independently. Currently used by the
+ * "GUI preferences" to aid in reading/writing the preferences file, but the
* "data" is still managed by the specific "GUI preferences" dialog.
*/
void prefs_register_custom_preference(module_t *module, const char *name,
diff --git a/epan/proto.h b/epan/proto.h
index afc9f26005..b61d8d7569 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -412,7 +412,7 @@ struct _header_field_info {
hf.hfinfo.parent = 0; \
hf.hfinfo.ref_type = HF_REF_TYPE_NONE; \
hf.hfinfo.same_name_prev_id = -1; \
- hf.hfinfo.same_name_next = NULL;
+ hf.hfinfo.same_name_next = NULL;
/** Used when registering many fields at once, using proto_register_field_array() */
typedef struct hf_register_info {
diff --git a/epan/range.c b/epan/range.c
index b546ceb463..30e06b2e78 100644
--- a/epan/range.c
+++ b/epan/range.c
@@ -108,7 +108,7 @@ range_convert_str_work(range_t **rangep, const gchar *es, guint32 max_value,
if ( (rangep == NULL) || (es == NULL) )
return CVT_SYNTAX_ERROR;
-
+
/* Allocate a range; this has room for one subrange. */
range = (range_t *)g_malloc(RANGE_HDR_SIZE + sizeof (range_admin_t));
range->nranges = 0;
@@ -293,7 +293,7 @@ ranges_are_equal(range_t *a, range_t *b)
if ( (a == NULL) || (b == NULL) )
return FALSE;
-
+
if (a->nranges != b->nranges)
return FALSE;
@@ -316,7 +316,7 @@ void
range_foreach(range_t *range, void (*callback)(guint32 val))
{
guint32 i, j;
-
+
if (range && callback) {
for (i=0; i < range->nranges; i++) {
for (j = range->ranges[i].low; j <= range->ranges[i].high; j++)
@@ -357,7 +357,7 @@ range_copy(range_t *src)
if (src == NULL)
return NULL;
-
+
range_size = RANGE_HDR_SIZE + src->nranges*sizeof (range_admin_t);
dst = (range_t *)g_malloc(range_size);
memcpy(dst, src, range_size);
diff --git a/epan/reassemble.c b/epan/reassemble.c
index 1523c1d3bd..ab90e03265 100644
--- a/epan/reassemble.c
+++ b/epan/reassemble.c
@@ -589,7 +589,7 @@ fragment_delete(reassembly_table *table, const packet_info *pinfo,
return NULL;
}
- fd_tvb_data=fd_head->tvb_data;
+ fd_tvb_data=fd_head->tvb_data;
/* loop over all partial fragments and free any tvbuffs */
for(fd=fd_head->next;fd;){
fragment_item *tmp_fd;
@@ -920,7 +920,7 @@ fragment_add_work(fragment_head *fd_head, tvbuff_t *tvb, const int offset,
* or later).
*/
g_slice_free(fragment_item, fd);
-
+
/*
* This is an attempt to add a fragment to a
* reassembly that had already completed.
@@ -1795,7 +1795,7 @@ fragment_add_seq_work(fragment_head *fd_head, tvbuff_t *tvb, const int offset,
static fragment_head *
fragment_add_seq_common(reassembly_table *table, tvbuff_t *tvb,
const int offset, const packet_info *pinfo,
- const guint32 id, const void *data,
+ const guint32 id, const void *data,
guint32 frag_number, const guint32 frag_data_len,
const gboolean more_frags, const guint32 flags,
gpointer *orig_keyp)
@@ -1922,7 +1922,7 @@ fragment_add_seq_common(reassembly_table *table, tvbuff_t *tvb,
fragment_head *
fragment_add_seq(reassembly_table *table, tvbuff_t *tvb, const int offset,
- const packet_info *pinfo, const guint32 id, const void *data,
+ const packet_info *pinfo, const guint32 id, const void *data,
const guint32 frag_number, const guint32 frag_data_len,
const gboolean more_frags, const guint32 flags)
{
@@ -1968,7 +1968,7 @@ fragment_add_seq(reassembly_table *table, tvbuff_t *tvb, const int offset,
static fragment_head *
fragment_add_seq_check_work(reassembly_table *table, tvbuff_t *tvb,
const int offset, const packet_info *pinfo,
- const guint32 id, const void *data,
+ const guint32 id, const void *data,
const guint32 frag_number,
const guint32 frag_data_len,
const gboolean more_frags, const guint32 flags)
@@ -1987,7 +1987,7 @@ fragment_add_seq_check_work(reassembly_table *table, tvbuff_t *tvb,
return (fragment_head *)g_hash_table_lookup(table->reassembled_table, &reass_key);
}
- fd_head = fragment_add_seq_common(table, tvb, offset, pinfo, id, data,
+ fd_head = fragment_add_seq_common(table, tvb, offset, pinfo, id, data,
frag_number, frag_data_len,
more_frags,
flags|REASSEMBLE_FLAGS_CHECK_DATA_PRESENT,
@@ -2062,7 +2062,7 @@ fragment_add_seq_next(reassembly_table *table, tvbuff_t *tvb, const int offset,
void
fragment_start_seq_check(reassembly_table *table, const packet_info *pinfo,
- const guint32 id, const void *data,
+ const guint32 id, const void *data,
const guint32 tot_len)
{
fragment_head *fd_head;
diff --git a/epan/reassemble.h b/epan/reassemble.h
index 59e7e20851..94252ffd57 100644
--- a/epan/reassemble.h
+++ b/epan/reassemble.h
@@ -241,7 +241,7 @@ fragment_add_check(reassembly_table *table, tvbuff_t *tvb, const int offset,
*/
WS_DLL_PUBLIC fragment_head *
fragment_add_seq(reassembly_table *table, tvbuff_t *tvb, const int offset,
- const packet_info *pinfo, const guint32 id, const void *data,
+ const packet_info *pinfo, const guint32 id, const void *data,
const guint32 frag_number, const guint32 frag_data_len,
const gboolean more_frags, const guint32 flags);
@@ -275,7 +275,7 @@ fragment_add_seq_next(reassembly_table *table, tvbuff_t *tvb, const int offset,
WS_DLL_PUBLIC void
fragment_start_seq_check(reassembly_table *table, const packet_info *pinfo,
- const guint32 id, const void *data,
+ const guint32 id, const void *data,
const guint32 tot_len);
WS_DLL_PUBLIC fragment_head *
diff --git a/epan/reassemble_test.c b/epan/reassemble_test.c
index afa3a3f3af..eed8f0df55 100644
--- a/epan/reassemble_test.c
+++ b/epan/reassemble_test.c
@@ -99,8 +99,8 @@ static char *data;
static tvbuff_t *tvb;
static packet_info pinfo;
-/* fragment_table maps from datagram ids to fragment_head
- reassembled_table maps from <packet number,datagram id> to
+/* fragment_table maps from datagram ids to fragment_head
+ reassembled_table maps from <packet number,datagram id> to
fragment_head */
static reassembly_table test_reassembly_table;
diff --git a/epan/reedsolomon.c b/epan/reedsolomon.c
index 012d4c3aaa..6fabd3b0bb 100644
--- a/epan/reedsolomon.c
+++ b/epan/reedsolomon.c
@@ -256,7 +256,7 @@ gen_ldec(void)
a(0) + a(1) @ + a(2) @^2 + ... + a(m-1) @^(m-1)
we consider the integer "i" whose binary representation with a(0) being LSB
and a(m-1) MSB is (a(0),a(1),...,a(m-1)) and locate the entry
- "index_of[i]". Now, @^index_of[i] is that element whose polynomial
+ "index_of[i]". Now, @^index_of[i] is that element whose polynomial
representation is (a(0),a(1),a(2),...,a(m-1)).
NOTE:
The element alpha_to[2^m-1] = 0 always signifying that the
@@ -264,7 +264,7 @@ gen_ldec(void)
Similarily, the element index_of[0] = A0 always signifying
that the power of alpha which has the polynomial representation
(0,0,...,0) is "infinity".
-
+
*/
static void
@@ -404,7 +404,7 @@ encode_rs(dtype data[KK], dtype bb[NN-KK])
* Return number of symbols corrected, or -1 if codeword is illegal
* or uncorrectable. If eras_pos is non-null, the detected error locations
* are written back. NOTE! This array must be at least NN-KK elements long.
- *
+ *
* First "no_eras" erasures are declared by the calling program. Then, the
* maximum # of errors correctable is t_after_eras = floor((NN-KK-no_eras)/2).
* If the number of channel errors is not greater than "t_after_eras" the
@@ -453,7 +453,7 @@ eras_dec_rs(dtype data[NN], int eras_pos[NN-KK], int no_eras)
if(RECEIVED(j) == 0)
continue;
tmp = Index_of[RECEIVED(j)];
-
+
/* s[i] ^= Alpha_to[modnn(tmp + (B0+i-1)*j)]; */
for(i=1;i<=NN-KK;i++)
s[i] ^= Alpha_to[modnn(tmp + (B0+i-1)*PRIM*j)];
@@ -465,7 +465,7 @@ eras_dec_rs(dtype data[NN], int eras_pos[NN-KK], int no_eras)
/*printf("syndrome %d = %x\n",i,s[i]);*/
s[i] = Index_of[s[i]];
}
-
+
if (!syn_error) {
/* if syndrome is zero, data[] is a codeword and there are no
* errors to correct. So return data[] unmodified
@@ -490,7 +490,7 @@ eras_dec_rs(dtype data[NN], int eras_pos[NN-KK], int no_eras)
#if DEBUG >= 1
/* Test code that verifies the erasure locator polynomial just constructed
Needed only for decoder debugging. */
-
+
/* find roots of the erasure location polynomial */
for(i=1;i<=no_eras;i++)
reg[i] = Index_of[lambda[i]];
@@ -524,7 +524,7 @@ eras_dec_rs(dtype data[NN], int eras_pos[NN-KK], int no_eras)
}
for(i=0;i<NN-KK+1;i++)
b[i] = Index_of[lambda[i]];
-
+
/*
* Begin Berlekamp-Massey algorithm to determine error+erasure
* locator polynomial
@@ -627,7 +627,7 @@ eras_dec_rs(dtype data[NN], int eras_pos[NN-KK], int no_eras)
omega[i] = Index_of[tmp];
}
omega[NN-KK] = A0;
-
+
/*
* Compute error values in poly-form. num1 = omega(inv(X(l))), num2 =
* inv(X(l))**(B0-1) and den = lambda_pr(inv(X(l))) all in poly-form
@@ -640,7 +640,7 @@ eras_dec_rs(dtype data[NN], int eras_pos[NN-KK], int no_eras)
}
num2 = Alpha_to[modnn(root[j] * (B0 - 1) + NN)];
den = 0;
-
+
/* lambda[i+1] for i even is the formal derivative lambda_pr of lambda[i] */
for (i = min_(deg_lambda,NN-KK-1) & ~1; i >= 0; i -=2) {
if(lambda[i+1] != A0)
diff --git a/epan/sigcomp-udvm.h b/epan/sigcomp-udvm.h
index 8fcd792e17..15a7119b5d 100644
--- a/epan/sigcomp-udvm.h
+++ b/epan/sigcomp-udvm.h
@@ -13,12 +13,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -36,7 +36,7 @@
#define UDVM_MEMORY_SIZE 65536
extern tvbuff_t* decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet_info *pinfo,
- proto_tree *tree, gint destination,
+ proto_tree *tree, gint destination,
gint print_flags, gint hf_id, gint header_len,
gint byte_code_state_len, gint byte_code_id_len,
gint udvm_start_ip);
@@ -44,6 +44,6 @@ extern tvbuff_t* decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *me
/* example: extern const value_string q931_cause_location_vals[]; */
-#endif
+#endif
/* SIGCOMP_UDVM_H */
diff --git a/epan/sigcomp_state_hdlr.h b/epan/sigcomp_state_hdlr.h
index 4492b5ab0a..5d7c82a4dc 100644
--- a/epan/sigcomp_state_hdlr.h
+++ b/epan/sigcomp_state_hdlr.h
@@ -1,5 +1,5 @@
/* sigcomp_state_hdlr.c
- * Routines making up the State handler of the Univerasl Decompressor Virtual Machine (UDVM)
+ * Routines making up the State handler of the Univerasl Decompressor Virtual Machine (UDVM)
* used for Signaling Compression (SigComp) dissection.
* Copyright 2004, Anders Broman <anders.broman@ericsson.com>
*
@@ -13,12 +13,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -34,7 +34,7 @@
#define SIGCOMP_STATE_HDLR_H
extern const value_string result_code_vals[];
-extern int udvm_state_access(tvbuff_t *tvb, proto_tree *tree,guint8 *buff,guint16 p_id_start, guint16 p_id_length, guint16 state_begin, guint16 *state_length,
+extern int udvm_state_access(tvbuff_t *tvb, proto_tree *tree,guint8 *buff,guint16 p_id_start, guint16 p_id_length, guint16 state_begin, guint16 *state_length,
guint16 *state_address, guint16 *state_instruction, gint hf_id);
extern void udvm_state_create(guint8 *state_buff,guint8 *state_identifier_buff,guint16 p_id_length);
@@ -45,5 +45,5 @@ extern void sigcomp_init_udvm(void);
#define STATE_BUFFER_SIZE 20
#define STATE_MIN_ACCESS_LEN 6
-#endif
+#endif
/* SIGCOMP_STATE_HDLR_H */
diff --git a/epan/stat_cmd_args.h b/epan/stat_cmd_args.h
index b3f6fb0dfa..f7fac1d7a7 100644
--- a/epan/stat_cmd_args.h
+++ b/epan/stat_cmd_args.h
@@ -7,17 +7,17 @@
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/epan/stats_tree.c b/epan/stats_tree.c
index 83713c2064..43f537b0ff 100644
--- a/epan/stats_tree.c
+++ b/epan/stats_tree.c
@@ -811,7 +811,7 @@ stats_tree_create_range_node(stats_tree *st, const gchar *name, int parent_id, .
return rng_root->id;
}
-extern int
+extern int
stats_tree_create_range_node_string(stats_tree *st, const gchar *name,
int parent_id, int num_str_ranges,
gchar** str_ranges)
diff --git a/epan/stats_tree_priv.h b/epan/stats_tree_priv.h
index bc79d4df59..19385a37e7 100644
--- a/epan/stats_tree_priv.h
+++ b/epan/stats_tree_priv.h
@@ -7,17 +7,17 @@
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -69,7 +69,7 @@ struct _burst_bucket {
struct _stat_node {
gchar* name;
int id;
-
+
/** the counter it keeps */
gint counter;
/** total of all values submitted - for computing averages */
@@ -86,10 +86,10 @@ struct _stat_node {
/** children nodes by name */
GHashTable *hash;
-
+
/** the owner of this node */
stats_tree *st;
-
+
/** relatives */
stat_node *parent;
stat_node *children;
@@ -97,7 +97,7 @@ struct _stat_node {
/** used to check if value is within range */
range_pair_t *rng;
-
+
/** node presentation data */
st_node_pres *pr;
};
@@ -105,9 +105,9 @@ struct _stat_node {
struct _stats_tree {
/** the "class" from which it's derived */
stats_tree_cfg *cfg;
-
+
char *filter;
-
+
/* times */
double start;
double elapsed;
@@ -122,16 +122,16 @@ struct _stats_tree {
* value: parent node
*/
GHashTable *names;
-
+
/** used for quicker lookups of parent nodes */
GPtrArray *parents;
-
+
/**
* tree representation
* to be defined (if needed) by the implementations
*/
tree_pres *pr;
-
+
/** every tree in nature has one */
stat_node root;
};
@@ -141,7 +141,7 @@ struct _stats_tree_cfg {
gchar* name;
gchar* tapname;
register_stat_group_t stat_group;
-
+
gboolean in_use;
gboolean plugin;
@@ -152,27 +152,27 @@ struct _stats_tree_cfg {
/** tap listener flags for the per-packet callback */
guint flags;
-
+
/*
* node presentation callbacks
*/
/** last to be called at node creation */
void (*setup_node_pr)(stat_node*);
-
+
/** last to be called at node destruction */
void (*free_node_pr)(stat_node*);
-
+
/** to be called for every node in the tree */
void (*draw_node)(stat_node*);
void (*reset_node)(stat_node*);
-
+
/**
* tree presentation callbacks
*/
tree_cfg_pres *pr;
-
-
+
+
tree_pres *(*new_tree_pr)(stats_tree*);
void (*free_tree_pr)(stats_tree*);
void (*draw_tree)(stats_tree*);
@@ -215,7 +215,7 @@ WS_DLL_PUBLIC gchar *stats_tree_get_abbr(const gchar *optarg);
/** obtains a stats tree from the registry given its abbr */
WS_DLL_PUBLIC stats_tree_cfg *stats_tree_get_cfg_by_abbr(const char *abbr);
-/** obtains a stats tree list from the registry
+/** obtains a stats tree list from the registry
caller should free returned list with g_list_free() */
WS_DLL_PUBLIC GList *stats_tree_get_cfg_list(void);
diff --git a/epan/stream.c b/epan/stream.c
index f7df235ce3..74e541e224 100644
--- a/epan/stream.c
+++ b/epan/stream.c
@@ -361,7 +361,7 @@ stream_t *find_stream_conv ( const struct conversation *conv, int p2p_dir )
/* cleanup the stream routines */
/* Note: stream_cleanup must only be called when seasonal memory
- * is also freed since the hash tables countain pointers to
+ * is also freed since the hash tables countain pointers to
* se_alloc'd memory.
*/
void stream_cleanup( void )
diff --git a/epan/strutil.c b/epan/strutil.c
index 0df9b515c9..b983b5cc9a 100644
--- a/epan/strutil.c
+++ b/epan/strutil.c
@@ -381,13 +381,13 @@ format_text_chr(const guchar *string, const size_t len, const guchar chr)
fmtbuf_len[idx] = INITIAL_FMTBUF_SIZE;
}
column = 0;
- while (string < stringend)
+ while (string < stringend)
{
/*
- * Is there enough room for this character,
+ * Is there enough room for this character,
* and also enough room for a terminating '\0'?
*/
- if (column+1 >= fmtbuf_len[idx])
+ if (column+1 >= fmtbuf_len[idx])
{
/*
* Double the buffer's size if it's not big enough.
@@ -400,17 +400,17 @@ format_text_chr(const guchar *string, const size_t len, const guchar chr)
}
c = *string++;
- if (g_ascii_isprint(c))
+ if (g_ascii_isprint(c))
{
fmtbuf[idx][column] = c;
column++;
- }
- else if (isspace(c))
+ }
+ else if (isspace(c))
{
fmtbuf[idx][column] = ' ';
column++;
- }
- else
+ }
+ else
{
fmtbuf[idx][column] = chr;
column++;
diff --git a/epan/t35.c b/epan/t35.c
index 112be50886..9c22e59506 100644
--- a/epan/t35.c
+++ b/epan/t35.c
@@ -304,24 +304,24 @@ const value_string H221ManufacturerCode_vals[] = {
{ 0xb4001d00, "GPT Video Systems" }, /* From Ref. 2 */
{ 0xb4001e00, "GPT Video Systems" }, /* From Ref. 2 */
{ 0xb4001f00, "GPT Video Systems" }, /* From Ref. 2 */
- { 0xb4002000, "Marconi Communications" }, /* From Ref. 2 */
- { 0xb4002100, "Indigo Active Vision Systems" }, /* From Ref. 2 */
- { 0xb4002200, "LiveWorks Limited" }, /* From Ref. 2 */
- { 0xb4002300, "ATL Telecom Limited" }, /* From Ref. 2 */
- { 0xb4002a00, "Network Alchemy Limited" }, /* From Ref. 2 */
- { 0xb4004200, "Motion Media Technology" }, /* From Ref. 2 */
- { 0xb4004400, "Data Connection" }, /* From Ref. 2 */
- { 0xb4004500, "Westbay Engineers" }, /* From Ref. 2 */
- { 0xb4004600, "FarSite Communications" }, /* From Ref. 2 */
- { 0xb4004900, "ImageCom" }, /* From Ref. 2 */
- { 0xb4004d00, "Madge Networks" }, /* From Ref. 2 */
- { 0xb4005200, "Ridgeway Systems and Software" }, /* From Ref. 2 */
- { 0xb4005300, "SpliceCom" }, /* From Ref. 2 */
- { 0xb4005400, "TeleWare" }, /* From Ref. 2 */
- { 0xb4005600, "Vegastream" }, /* From Ref. 2 */
- { 0xb4006600, "Westell" }, /* From Ref. 2 */
- { 0xb4006900, "ISDN Communications" }, /* From Ref. 2 */
- { 0xb400c000, "Codian" }, /* From Ref. 2 */
+ { 0xb4002000, "Marconi Communications" }, /* From Ref. 2 */
+ { 0xb4002100, "Indigo Active Vision Systems" }, /* From Ref. 2 */
+ { 0xb4002200, "LiveWorks Limited" }, /* From Ref. 2 */
+ { 0xb4002300, "ATL Telecom Limited" }, /* From Ref. 2 */
+ { 0xb4002a00, "Network Alchemy Limited" }, /* From Ref. 2 */
+ { 0xb4004200, "Motion Media Technology" }, /* From Ref. 2 */
+ { 0xb4004400, "Data Connection" }, /* From Ref. 2 */
+ { 0xb4004500, "Westbay Engineers" }, /* From Ref. 2 */
+ { 0xb4004600, "FarSite Communications" }, /* From Ref. 2 */
+ { 0xb4004900, "ImageCom" }, /* From Ref. 2 */
+ { 0xb4004d00, "Madge Networks" }, /* From Ref. 2 */
+ { 0xb4005200, "Ridgeway Systems and Software" }, /* From Ref. 2 */
+ { 0xb4005300, "SpliceCom" }, /* From Ref. 2 */
+ { 0xb4005400, "TeleWare" }, /* From Ref. 2 */
+ { 0xb4005600, "Vegastream" }, /* From Ref. 2 */
+ { 0xb4006600, "Westell" }, /* From Ref. 2 */
+ { 0xb4006900, "ISDN Communications" }, /* From Ref. 2 */
+ { 0xb400c000, "Codian" }, /* From Ref. 2 */
{ 0xb5000000, "Compression Labs" }, /* From Ref. 1 */
{ 0xb5000001, "PictureTel" }, /* From Ref. 1 */
diff --git a/epan/t35.h b/epan/t35.h
index de2f8fad57..1ed2aa88cc 100644
--- a/epan/t35.h
+++ b/epan/t35.h
@@ -24,7 +24,7 @@
*/
#ifndef __T35_H__
-#define __T35_H__
+#define __T35_H__
#include <epan/value_string.h>
diff --git a/epan/tap-voip.h b/epan/tap-voip.h
index fe6d0e3c2a..476397dbf9 100644
--- a/epan/tap-voip.h
+++ b/epan/tap-voip.h
@@ -6,17 +6,17 @@
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/epan/tpg.c b/epan/tpg.c
index aad97e5f19..596be07762 100644
--- a/epan/tpg.c
+++ b/epan/tpg.c
@@ -2,7 +2,7 @@
* helper functions for TPG
*
* (c) 2005, Luis E. Garcia Ontanon <luis@ontanon.org>
- *
+ *
* $Id$
*
* Wireshark - Network traffic analyzer
@@ -31,7 +31,7 @@
#include <epan/wmem/wmem.h>
#include <epan/packet.h>
-extern guint32 tpg_ipv4(tvbparse_elem_t* e _U_) {
+extern guint32 tpg_ipv4(tvbparse_elem_t* e _U_) {
/* XXX TO DO */
return 0;
}
diff --git a/epan/tpg.h b/epan/tpg.h
index fbe2a05ab6..7701162e51 100644
--- a/epan/tpg.h
+++ b/epan/tpg.h
@@ -2,7 +2,7 @@
* Definitions of helper functions for TPG
*
* (c) 2005, Luis E. Garcia Ontanon <luis@ontanon.org>
- *
+ *
* $Id$
*
* Wireshark - Network traffic analyzer
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index 123e7ec473..945ab95f9c 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -1815,7 +1815,7 @@ tvb_format_stringzpad_wsp(tvbuff_t *tvb, const gint offset, const gint size)
/*
* All string functions below take a scope as an argument.
*
- *
+ *
* If scope is NULL, memory is allocated with g_malloc() and user must
* explicitly free it with g_free().
* If scope is not NULL, memory is allocated with the corresponding pool
@@ -2054,7 +2054,7 @@ tvb_extract_utf_16_string(wmem_allocator_t *scope, tvbuff_t *tvb, const gint off
} else {
/*
* Not a trail surrogate.
- * Ignore the entire pair.
+ * Ignore the entire pair.
* XXX - insert "substitute" character?
* Report the error in some other
* fashion?
diff --git a/epan/uat-int.h b/epan/uat-int.h
index 9132d53552..0c65bc9f23 100644
--- a/epan/uat-int.h
+++ b/epan/uat-int.h
@@ -12,17 +12,17 @@
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 2001 Gerald Combs
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/epan/value_string.h b/epan/value_string.h
index 1e2c6713b4..c62a758cf6 100644
--- a/epan/value_string.h
+++ b/epan/value_string.h
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <glib.h>
#include "ws_symbol_export.h"
diff --git a/epan/wslua/wslua.h b/epan/wslua/wslua.h
index 1b6011b8bc..25d317ad71 100644
--- a/epan/wslua/wslua.h
+++ b/epan/wslua/wslua.h
@@ -233,7 +233,7 @@ typedef struct _wslua_distbl_t* DissectorTable;
typedef dissector_handle_t Dissector;
typedef GByteArray* ByteArray;
typedef struct _wslua_tvb* Tvb;
-typedef struct _wslua_tvbrange* TvbRange;
+typedef struct _wslua_tvbrange* TvbRange;
typedef struct _wslua_col_info* Column;
typedef struct _wslua_cols* Columns;
typedef struct _wslua_pinfo* Pinfo;
@@ -392,19 +392,19 @@ extern int wslua_reg_attributes(lua_State *L, const wslua_attribute_table *t, gb
#endif
-#define WSLUA_FUNCTION extern int
+#define WSLUA_FUNCTION extern int
#define WSLUA_REGISTER_FUNCTION(name) { lua_pushcfunction(L, wslua_## name); lua_setglobal(L, #name); }
#define WSLUA_REGISTER extern int
-#define WSLUA_METHOD static int
-#define WSLUA_CONSTRUCTOR static int
-#define WSLUA_ATTR_SET static int
-#define WSLUA_ATTR_GET static int
+#define WSLUA_METHOD static int
+#define WSLUA_CONSTRUCTOR static int
+#define WSLUA_ATTR_SET static int
+#define WSLUA_ATTR_GET static int
#define WSLUA_METAMETHOD static int
-#define WSLUA_METHODS static const luaL_Reg
+#define WSLUA_METHODS static const luaL_Reg
#define WSLUA_META static const luaL_Reg
#define WSLUA_CLASS_FNREG(class,name) { #name, class##_##name }
#define WSLUA_CLASS_FNREG_ALIAS(class,aliasname,name) { #aliasname, class##_##name }
@@ -502,7 +502,7 @@ extern int wslua_reg_attributes(lua_State *L, const wslua_attribute_table *t, gb
g_free(p); \
} \
} \
-}
+}
#define WSLUA_CLASS_DECLARE(C) \
extern C to##C(lua_State* L, int idx); \
diff --git a/epan/wslua/wslua_field.c b/epan/wslua/wslua_field.c
index b6d1b3d606..335bb67f53 100644
--- a/epan/wslua/wslua_field.c
+++ b/epan/wslua/wslua_field.c
@@ -214,7 +214,7 @@ static int FieldInfo_get_display(lua_State* L) {
if (!fi->ws_fi->rep) {
label_ptr = label_str;
proto_item_fill_label(fi->ws_fi, label_str);
- } else
+ } else
label_ptr = fi->ws_fi->rep->representation;
if (!label_ptr) return 0;
@@ -235,7 +235,7 @@ static int FieldInfo_get_display(lua_State* L) {
static int FieldInfo_get_range(lua_State* L) {
/* The TvbRange covering this field */
FieldInfo fi = checkFieldInfo(L,1);
-
+
if (push_TvbRange (L, fi->ws_fi->ds_tvb, fi->ws_fi->start, fi->ws_fi->length)) {
return 1;
}
@@ -247,7 +247,7 @@ static int FieldInfo_get_range(lua_State* L) {
static int FieldInfo_get_generated(lua_State* L) {
/* Whether this field was marked as generated. */
FieldInfo fi = checkFieldInfo(L,1);
-
+
lua_pushboolean(L,FI_GET_FLAG(fi->ws_fi, FI_GENERATED));
return 1;
}
@@ -256,7 +256,7 @@ static int FieldInfo_get_generated(lua_State* L) {
static int FieldInfo_get_name(lua_State* L) {
/* The filter name of this field. */
FieldInfo fi = checkFieldInfo(L,1);
-
+
lua_pushstring(L,fi->ws_fi->hfinfo->abbrev);
return 1;
}
@@ -381,7 +381,7 @@ WSLUA_FUNCTION wslua_all_field_infos(lua_State* L) {
FieldInfo fi = (FieldInfo)g_malloc(sizeof(struct _wslua_field_info));
fi->ws_fi = (field_info *)g_ptr_array_index(found,i);
fi->expired = FALSE;
-
+
PUSH_FIELDINFO(L,fi);
items_found++;
}
@@ -400,9 +400,9 @@ WSLUA_CLASS_DEFINE(Field,FAIL_ON_NULL("Field"),NOP);
static GPtrArray* wanted_fields = NULL;
static dfilter_t* wslua_dfilter = NULL;
-/* We use a fake dfilter for Lua field extractors, so that
+/* We use a fake dfilter for Lua field extractors, so that
* epan_dissect_run() will populate the fields. This won't happen
- * if the passed-in edt->tree is NULL, which it will be if the
+ * if the passed-in edt->tree is NULL, which it will be if the
* proto_tree isn't created by epan_dissect_init(). But that's by
* design - if shark doesn't pass in a proto_tree, it's probably for
* a good reason and we shouldn't override that. (right?)
@@ -518,7 +518,7 @@ WSLUA_METAMETHOD Field__call (lua_State* L) {
FieldInfo fi = (FieldInfo)g_malloc(sizeof(struct _wslua_field_info));
fi->ws_fi = (field_info *)g_ptr_array_index(found,i);
fi->expired = FALSE;
-
+
PUSH_FIELDINFO(L,fi);
items_found++;
}
diff --git a/epan/wslua/wslua_struct.c b/epan/wslua/wslua_struct.c
index b809831ded..3f26d8755d 100644
--- a/epan/wslua/wslua_struct.c
+++ b/epan/wslua/wslua_struct.c
@@ -26,7 +26,7 @@
** $Id: struct.c,v 1.4 2012/07/04 18:54:29 roberto Exp $
** See Copyright Notice above.
**
-** Small changes were made by Hadriel Kaplan - those changes
+** Small changes were made by Hadriel Kaplan - those changes
** are in the Public Domain.
**
** Some changes are based on a patch to struct.h from
@@ -94,8 +94,8 @@
/* The following line is here so that make-reg.pl does the right thing. This 'Struct' class
isn't really a class, so it doesn't have the checkStruct/pushStruct/etc. functions
- the following macro would generate; but it does need to be registered and such.
- WSLUA_CLASS_DEFINE_BASE(Struct,NOP,NOP,0);
+ the following macro would generate; but it does need to be registered and such.
+ WSLUA_CLASS_DEFINE_BASE(Struct,NOP,NOP,0);
*/
/* basic integer type - yes this is system-specific size - it's meant to be */
@@ -257,7 +257,7 @@ static void putinteger (lua_State *L, luaL_Buffer *b, int arg, int endian,
luaL_addlstring(b, buff, size);
}
-/* corrects endiannes - usually done by other functions themselves, but is
+/* corrects endiannes - usually done by other functions themselves, but is
* used for float/doubles, since on some platforms they're endian'ed as well
*/
static void correctbytes (gchar *b, int size, int endian) {
@@ -353,7 +353,7 @@ WSLUA_CONSTRUCTOR Struct_pack (lua_State *L) {
return poscnt + 1;
}
-/* Decodes an integer from a string struct into a Lua number, based on
+/* Decodes an integer from a string struct into a Lua number, based on
* given endianess and size. If the integer type is signed, this makes
* the Lua number be +/- correctly as well.
*/
@@ -386,7 +386,7 @@ static lua_Number getinteger (const gchar *buff, int endian,
#define b_pushnumber(n) { if (!h.noassign) lua_pushnumber(L, (lua_Number)(n)); }
WSLUA_CONSTRUCTOR Struct_unpack (lua_State *L) {
- /* Unpacks/decodes multiple Lua values from a given struct-like binary Lua string.
+ /* Unpacks/decodes multiple Lua values from a given struct-like binary Lua string.
The number of returned values depends on the format given, plus an addtional value of the position where it stopped reading is returned. */
#define WSLUA_ARG_Struct_unpack_FORMAT 1 /* The format string */
#define WSLUA_ARG_Struct_unpack_STRUCT 2 /* The binary Lua string to unpack */
diff --git a/epan/wslua/wslua_tree.c b/epan/wslua/wslua_tree.c
index 0440fe85e5..e84ada62b5 100644
--- a/epan/wslua/wslua_tree.c
+++ b/epan/wslua/wslua_tree.c
@@ -318,7 +318,7 @@ WSLUA_METHOD TreeItem_append_text(lua_State *L) {
#define WSLUA_ARG_TreeItem_append_text_TEXT 2 /* The text to be appended. */
TreeItem ti = checkTreeItem(L,1);
const gchar* s = luaL_checkstring(L,WSLUA_ARG_TreeItem_append_text_TEXT);
-
+
proto_item_append_text(ti->item,"%s",s);
return 0;
diff --git a/epan/wslua/wslua_tvb.c b/epan/wslua/wslua_tvb.c
index 2a2c5bcdc7..45bbd36cbf 100644
--- a/epan/wslua/wslua_tvb.c
+++ b/epan/wslua/wslua_tvb.c
@@ -243,7 +243,7 @@ WSLUA_METHOD ByteArray_base64_decode(lua_State* L) {
data = (gchar*)g_malloc (ba->len + 1);
memcpy(data, ba->data, ba->len);
data[ba->len] = '\0';
-
+
len = ws_base64_decode_inplace(data);
g_byte_array_append(ba2,data,(int)len);
g_free(data);
@@ -1303,7 +1303,7 @@ static int TvbRange_uncompress(lua_State* L) {
tvbuff_t *uncompr_tvb;
if (!(tvbr && tvbr->tvb)) return 0;
-
+
if (tvbr->tvb->expired) {
luaL_error(L,"expired tvb");
return 0;