diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-09-27 11:29:03 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-09-27 18:29:31 +0000 |
commit | 006790927f725133cc271438616f786826576590 (patch) | |
tree | abcc5ebe79f968700213f56c1897f39a31be2d89 /epan/column.c | |
parent | 6e83b3802001479d72ff39cd54601871e8987c57 (diff) |
Make get_column_longest_string() static.
It's not used outside epan/column.c, so don't export it.
Change-Id: I38e084946d92f3c31b06fc4fc1991c88e652f58a
Reviewed-on: https://code.wireshark.org/review/4334
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/column.c')
-rw-r--r-- | epan/column.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/epan/column.c b/epan/column.c index 69d16faada..4d23d9e5bc 100644 --- a/epan/column.c +++ b/epan/column.c @@ -450,18 +450,6 @@ get_timestamp_column_longest_string(const gint type, const gint precision) return ""; } -/* Returns the longer string of the column title or the hard-coded width of - * its contents for building the packet list layout. */ -const gchar * -get_column_width_string(const gint format, const gint col) -{ - if(strlen(get_column_longest_string(format)) > - strlen(get_column_title(col))) - return get_column_longest_string(format); - else - return get_column_title(col); -} - /* Returns a string representing the longest possible value for a particular column type. See also get_column_width_string() above. @@ -474,7 +462,7 @@ get_column_width_string(const gint format, const gint col) is done, and given that the width for COL...SRC and COL...DST columns is somewhat arbitrary in any case. We should probably clean that up eventually, though. */ -const char * +static const char * get_column_longest_string(const gint format) { switch (format) { @@ -620,6 +608,18 @@ get_column_longest_string(const gint format) } } +/* Returns the longer string of the column title or the hard-coded width of + * its contents for building the packet list layout. */ +const gchar * +get_column_width_string(const gint format, const gint col) +{ + if(strlen(get_column_longest_string(format)) > + strlen(get_column_title(col))) + return get_column_longest_string(format); + else + return get_column_title(col); +} + /* Returns the longest possible width, in characters, for a particular column type. */ gint |