diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-08-28 20:41:00 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-08-28 20:41:00 +0000 |
commit | 6dd1237758422cb309ad6706f74ef6b2c374a854 (patch) | |
tree | fc136de37c7e939ec0c5fc83dbf48297b9650816 /epan/column-utils.c | |
parent | 279d0ab898de61ea418179026341dda23a3db4a2 (diff) |
Removed trailing whitespaces from .h and .c files using the
winapi_cleanup tool written by Patrik Stridvall for the wine
project.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6116 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/column-utils.c')
-rw-r--r-- | epan/column-utils.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/epan/column-utils.c b/epan/column-utils.c index acdd153528..e21059ae77 100644 --- a/epan/column-utils.c +++ b/epan/column-utils.c @@ -1,22 +1,22 @@ /* column-utils.c * Routines for column utilities. * - * $Id: column-utils.c,v 1.17 2002/08/02 21:29:39 jmayer Exp $ + * $Id: column-utils.c,v 1.18 2002/08/28 20:40:44 jmayer Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -41,7 +41,7 @@ #include "packet_info.h" #include "pint.h" #include "resolv.h" -#include "ipv6-utils.h" +#include "ipv6-utils.h" #include "osi-utils.h" /* Allocate all the data structures for constructing column data, given @@ -62,7 +62,7 @@ col_init(column_info *col_info, gint num_cols) #if 0 /* - * This function does not appear to be used anywhere... + * This function does not appear to be used anywhere... */ gboolean col_get_writable(column_info *cinfo) @@ -120,7 +120,7 @@ col_clear(column_info *cinfo, gint el) { void col_set_str(column_info *cinfo, gint el, gchar* str) { int i; - + for (i = 0; i < cinfo->num_cols; i++) { if (cinfo->fmt_matx[i][el]) cinfo->col_data[i] = str; @@ -138,7 +138,7 @@ col_add_fstr(column_info *cinfo, gint el, gchar *format, ...) { max_len = COL_MAX_INFO_LEN; else max_len = COL_MAX_LEN; - + va_start(ap, format); for (i = 0; i < cinfo->num_cols; i++) { if (cinfo->fmt_matx[i][el]) { @@ -155,12 +155,12 @@ col_append_fstr(column_info *cinfo, gint el, gchar *format, ...) { va_list ap; int i; size_t len, max_len; - + if (el == COL_INFO) max_len = COL_MAX_INFO_LEN; else max_len = COL_MAX_LEN; - + va_start(ap, format); for (i = 0; i < cinfo->num_cols; i++) { if (cinfo->fmt_matx[i][el]) { @@ -189,12 +189,12 @@ col_prepend_fstr(column_info *cinfo, gint el, gchar *format, ...) char orig_buf[COL_BUF_MAX_LEN]; char *orig; size_t max_len; - + if (el == COL_INFO) max_len = COL_MAX_INFO_LEN; else max_len = COL_MAX_LEN; - + va_start(ap, format); for (i = 0; i < cinfo->num_cols; i++) { if (cinfo->fmt_matx[i][el]) { @@ -226,7 +226,7 @@ col_add_str(column_info *cinfo, gint el, const gchar* str) { max_len = COL_MAX_INFO_LEN; else max_len = COL_MAX_LEN; - + for (i = 0; i < cinfo->num_cols; i++) { if (cinfo->fmt_matx[i][el]) { strncpy(cinfo->col_buf[i], str, max_len); @@ -245,7 +245,7 @@ col_append_str(column_info *cinfo, gint el, gchar* str) { max_len = COL_MAX_INFO_LEN; else max_len = COL_MAX_LEN; - + for (i = 0; i < cinfo->num_cols; i++) { if (cinfo->fmt_matx[i][el]) { if (cinfo->col_data[i] != cinfo->col_buf[i]) { @@ -496,7 +496,7 @@ col_set_port(packet_info *pinfo, int col, port_type ptype, guint32 port, else snprintf(pinfo->cinfo->col_buf[col], COL_MAX_LEN, "%u", port); break; - + case PT_TCP: if (is_res) strncpy(pinfo->cinfo->col_buf[col], get_tcp_port(port), COL_MAX_LEN); |