From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2A3F1138334 for ; Thu, 13 Jun 2019 09:29:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2EFFFE092B; Thu, 13 Jun 2019 09:29:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1094BE092B for ; Thu, 13 Jun 2019 09:29:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9E78C345FC9 for ; Thu, 13 Jun 2019 09:28:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 110C9608 for ; Thu, 13 Jun 2019 09:28:57 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1560418118.a7a3f52bf768546f5f57bfded6d9a60749593162.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: main.c qmanifest.c X-VCS-Directories: / X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: a7a3f52bf768546f5f57bfded6d9a60749593162 X-VCS-Branch: master Date: Thu, 13 Jun 2019 09:28:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2250dd0f-ac3f-4f75-8850-e69da3c18a6f X-Archives-Hash: 3bef2b749a7c1454c656f70d5e40a59d commit: a7a3f52bf768546f5f57bfded6d9a60749593162 Author: Fabian Groffen gentoo org> AuthorDate: Thu Jun 13 09:28:38 2019 +0000 Commit: Fabian Groffen gentoo 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 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 #include #include +#include #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 #include #include +#include #include #include #include -#include #include #include #include @@ -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); } }