summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-17 00:08:22 +0100
committerDan McGee <dan@archlinux.org>2012-03-17 00:08:22 +0100
commit38c0ec868be6e2f45ffcc61d95cfb85294f623c1 (patch)
treeada3bcf66364f817133c7ffcb1dfd41fa5919292
parent8da489eac53513841d62380a72aae1baecc44e61 (diff)
downloadpacman-38c0ec868be6e2f45ffcc61d95cfb85294f623c1.tar.gz
pacman-38c0ec868be6e2f45ffcc61d95cfb85294f623c1.tar.xz
Change table_display() to be static
It is only used inside util.c. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--src/pacman/util.c2
-rw-r--r--src/pacman/util.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 4b8684e2..f2ab163b 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -605,7 +605,7 @@ static size_t table_calc_widths(const alpm_list_t *header,
* @param cols the number of columns available in the terminal
* @return -1 if not enough terminal cols available, else 0
*/
-int table_display(const char *title, const alpm_list_t *header,
+static int table_display(const char *title, const alpm_list_t *header,
const alpm_list_t *rows, unsigned short cols)
{
const unsigned short padding = 2;
diff --git a/src/pacman/util.h b/src/pacman/util.h
index 7773c81c..0dfdc851 100644
--- a/src/pacman/util.h
+++ b/src/pacman/util.h
@@ -58,8 +58,6 @@ alpm_list_t *strsplit(const char *str, const char splitchar);
void string_display(const char *title, const char *string, unsigned short cols);
double humanize_size(off_t bytes, const char target_unit, int precision,
const char **label);
-int table_display(const char *title, const alpm_list_t *header,
- const alpm_list_t *rows, unsigned short cols);
void list_display(const char *title, const alpm_list_t *list,
unsigned short maxcols);
void list_display_linebreak(const char *title, const alpm_list_t *list,