summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-01-18 21:13:34 +0100
committerAaron Griffin <aaron@archlinux.org>2007-01-18 21:13:34 +0100
commitbb69613e42eef267590a5462174bb4bda44a54f8 (patch)
treeb3b3ea9796122cda9d06969bd5591a396916d3a1
parent37b83a7401b45a86d29c60d28fe8d638a3724f9d (diff)
downloadpacman-bb69613e42eef267590a5462174bb4bda44a54f8.tar.gz
pacman-bb69613e42eef267590a5462174bb4bda44a54f8.tar.xz
* remove static neednl - no accessor functions (yet)
* remove getcols call in main()
-rw-r--r--src/pacman/log.c2
-rw-r--r--src/pacman/pacman.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/pacman/log.c b/src/pacman/log.c
index a7a493aa..928c8220 100644
--- a/src/pacman/log.c
+++ b/src/pacman/log.c
@@ -38,7 +38,7 @@
extern config_t *config;
-static int neednl = 0; /* for cleaner message output */
+int neednl = 0; /* for cleaner message output */
static int needpad = 0; /* pad blanks to terminal width */
/* simple helper for needpad */
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index fa3003e2..5498fab5 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -412,8 +412,6 @@ int main(int argc, char *argv[])
/*setenv("MALLOC_TRACE","pacman.mtrace", 0);*/
mtrace();
#endif
- maxcols = getcols();
-
/* set signal handlers */
signal(SIGINT, cleanup);
signal(SIGTERM, cleanup);