mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-17 14:55:07 -05:00
Change table_display() to be static
It is only used inside util.c. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
8da489eac5
commit
38c0ec868b
@ -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
|
* @param cols the number of columns available in the terminal
|
||||||
* @return -1 if not enough terminal cols available, else 0
|
* @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 alpm_list_t *rows, unsigned short cols)
|
||||||
{
|
{
|
||||||
const unsigned short padding = 2;
|
const unsigned short padding = 2;
|
||||||
|
@ -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);
|
void string_display(const char *title, const char *string, unsigned short cols);
|
||||||
double humanize_size(off_t bytes, const char target_unit, int precision,
|
double humanize_size(off_t bytes, const char target_unit, int precision,
|
||||||
const char **label);
|
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,
|
void list_display(const char *title, const alpm_list_t *list,
|
||||||
unsigned short maxcols);
|
unsigned short maxcols);
|
||||||
void list_display_linebreak(const char *title, const alpm_list_t *list,
|
void list_display_linebreak(const char *title, const alpm_list_t *list,
|
||||||
|
Loading…
Reference in New Issue
Block a user