diff options
author | Dan McGee <dan@archlinux.org> | 2008-09-20 17:09:17 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-10-13 04:28:05 +0200 |
commit | ce3d70aa99ab86d49756d1858580750f2f13dd9e (patch) | |
tree | b767396c004dccfeb3dad9977959f45f25bc21b9 /src/pacman/util.h | |
parent | f9be2334f7b01ba30235500cb12d4ed61fff564b (diff) | |
download | pacman-ce3d70aa99ab86d49756d1858580750f2f13dd9e.tar.gz pacman-ce3d70aa99ab86d49756d1858580750f2f13dd9e.tar.xz |
Reduce number of calls to getcols()
Every call to getcols() results in two ioctl() calls, which we really didn't
need as changing the number of columns in mid-print would be pretty crazy.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/util.h')
-rw-r--r-- | src/pacman/util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pacman/util.h b/src/pacman/util.h index f94f0aed..5eeec8d2 100644 --- a/src/pacman/util.h +++ b/src/pacman/util.h @@ -37,9 +37,9 @@ #define UPDATE_SPEED_SEC 0.2f int trans_init(pmtranstype_t type, pmtransflag_t flags); -int trans_release(); -int needs_transaction(); -int getcols(); +int trans_release(void); +int needs_transaction(void); +int getcols(void); int makepath(const char *path); int rmrf(const char *path); char *mbasename(const char *path); |