diff options
author | Aaron Griffin <aaron@archlinux.org> | 2007-01-18 17:52:57 +0100 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-01-18 17:52:57 +0100 |
commit | 86b136bb592bf576a3da950fee153f6d4f5b9d15 (patch) | |
tree | f6289e427de5c5b2cfd3e3d37b75fc9506eb3bdb /src/pacman/log.c | |
parent | 46e26ac5c8d15fbb2385ad972f2f69891a0bd8d0 (diff) | |
download | pacman-86b136bb592bf576a3da950fee153f6d4f5b9d15.tar.gz pacman-86b136bb592bf576a3da950fee153f6d4f5b9d15.tar.xz |
Dan McGee <dpmcgee@gmail.com>
* Removed some unnecessary headers and library links
* Made things static if possible
* Cleaned up makefiles a bit
* Fixed some old comments in the code
* Fixed some errors the static code checker splint pointed out
* Backwards arguments in a memset call in _alpm_db_read (could have been worse)
* Other various small fixes
Other:
* Default to 80 columns when getcols cannot determine display width
* Removal of ._install as a valid install file in packages
Diffstat (limited to 'src/pacman/log.c')
-rw-r--r-- | src/pacman/log.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pacman/log.c b/src/pacman/log.c index 7231545e..a7a493aa 100644 --- a/src/pacman/log.c +++ b/src/pacman/log.c @@ -38,8 +38,8 @@ extern config_t *config; -int neednl = 0; /* for cleaner message output */ -int needpad = 0; /* pad blanks to terminal width */ +static int neednl = 0; /* for cleaner message output */ +static int needpad = 0; /* pad blanks to terminal width */ /* simple helper for needpad */ void set_output_padding(int on) @@ -131,8 +131,8 @@ void pm_fprintf(FILE *file, unsigned short line, char *fmt, ...) fprintf(file, str); if(needpad == 1) { - unsigned int cols = getcols(); - for(int i=len; i < cols; ++i) { + unsigned int i, cols = getcols(); + for(i=len; i < cols; ++i) { fprintf(file, " "); } if(neednl == 1) { |