xbps-query: use get_maxcols() from xbps-install.

This commit is contained in:
Juan RP
2013-06-14 09:33:27 +02:00
parent 5f2bba7f4e
commit 89ded69bed
3 changed files with 3 additions and 13 deletions

View File

@ -38,17 +38,6 @@ struct list_pkgver_cb {
int maxcols;
};
int
get_maxcols(void)
{
struct winsize ws;
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) == 0)
return ws.ws_col;
return 80;
}
int
list_pkgs_in_dict(struct xbps_handle *xhp,
prop_object_t obj,