commit: a7a3f52bf768546f5f57bfded6d9a60749593162
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 13 09:28:38 2019 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Jun 13 09:28:38 2019 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=a7a3f52b
main/qmanifest: fix compilation on Linux
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
main.c | 1 +
qmanifest.c | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/main.c b/main.c
index 8325c44..f5f7b57 100644
--- a/main.c
+++ b/main.c
@@ -17,6 +17,7 @@
#include <sys/time.h>
#include <limits.h>
#include <termios.h>
+#include <sys/ioctl.h>
#include "eat_file.h"
#include "rmspace.h"
diff --git a/qmanifest.c b/qmanifest.c
index d7f90b8..7ca2b40 100644
--- a/qmanifest.c
+++ b/qmanifest.c
@@ -25,10 +25,10 @@
#include <dirent.h>
#include <time.h>
#include <errno.h>
+#include <termios.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
-#include <sys/ioctl.h>
#include <openssl/sha.h>
#include <openssl/whrlpool.h>
#include <blake2.h>
@@ -1498,7 +1498,7 @@ verify_timestamp(const char *ts)
}
static void
-format_line(const char *pfx, const char *msg, int twidth)
+format_line(const char *pfx, const char *msg)
{
size_t msglen = strlen(pfx) + strlen(msg);
@@ -1644,11 +1644,11 @@ process_dir_vrfy(void)
msgline = msg;
while ((msgline = strchr(msgline, '\n')) !=
NULL) {
*msgline++ = '\0';
- format_line(pfx, msg, twidth);
+ format_line(pfx, msg);
pfx = " ";
msg = msgline;
}
- format_line(pfx, msg, twidth);
+ format_line(pfx, msg);
}
}