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 498F9138334 for ; Mon, 20 May 2019 10:46:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 328E3E082D; Mon, 20 May 2019 10:46:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 131DFE082D for ; Mon, 20 May 2019 10:46:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 4CCD9344B66 for ; Mon, 20 May 2019 10:46:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BB0082A5 for ; Mon, 20 May 2019 10:46:03 +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: <1558341837.861d52c3d5fe82d4ca07ba7159f3232c215af28e.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: /, man/ X-VCS-Repository: proj/portage-utils X-VCS-Files: applets.h main.c man/q.1 q.c X-VCS-Directories: / man/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 861d52c3d5fe82d4ca07ba7159f3232c215af28e X-VCS-Branch: master Date: Mon, 20 May 2019 10:46:03 +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: 4033f477-6dcb-456e-8d12-70ef7943c30f X-Archives-Hash: f6a15101ca7c53a2eae7e81543ed7364 commit: 861d52c3d5fe82d4ca07ba7159f3232c215af28e Author: Fabian Groffen gentoo org> AuthorDate: Mon May 20 08:40:58 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Mon May 20 08:43:57 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=861d52c3 q: remove -M (modpath) option modpath is never used in the code, remove its option Signed-off-by: Fabian Groffen gentoo.org> applets.h | 1 - main.c | 1 - man/q.1 | 3 --- q.c | 5 +---- 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/applets.h b/applets.h index 8cb537a..f183dca 100644 --- a/applets.h +++ b/applets.h @@ -137,7 +137,6 @@ static const struct applet_t { case 'C': no_colors(); break; \ default: applet ## _usage(EXIT_FAILURE); break; -extern char *modpath; extern char *portroot; extern int verbose; extern int quiet; diff --git a/main.c b/main.c index 944950e..bf86c49 100644 --- a/main.c +++ b/main.c @@ -24,7 +24,6 @@ /* variables to control runtime behavior */ char *module_name = NULL; -char *modpath = NULL; int verbose = 0; int quiet = 0; char pretend = 0; diff --git a/man/q.1 b/man/q.1 index 92794a2..4d0b352 100644 --- a/man/q.1 +++ b/man/q.1 @@ -19,9 +19,6 @@ no longer necessary to initialise the cache at any time. \fB\-i\fR, \fB\-\-install\fR Install symlinks for applets. .TP -\fB\-M\fR \fI\fR, \fB\-\-modpath\fR \fI\fR -Module path. -.TP \fB\-\-root\fR \fI\fR Set the ROOT env var. .TP diff --git a/q.c b/q.c index b6486ee..6307658 100644 --- a/q.c +++ b/q.c @@ -21,15 +21,13 @@ #include "basename.h" -#define Q_FLAGS "iM:" COMMON_FLAGS +#define Q_FLAGS "i" COMMON_FLAGS static struct option const q_long_opts[] = { {"install", no_argument, NULL, 'i'}, - {"modpath", a_argument, NULL, 'M'}, COMMON_LONG_OPTS }; static const char * const q_opts_help[] = { "Install symlinks for applets", - "Module path", COMMON_OPTS_HELP }; #define q_usage(ret) usage(ret, Q_FLAGS, q_long_opts, q_opts_help, NULL, lookup_applet_idx("q")) @@ -95,7 +93,6 @@ int q_main(int argc, char **argv) while ((i = GETOPT_LONG(Q, q, "+")) != -1) { switch (i) { COMMON_GETOPTS_CASES(q) - case 'M': modpath = optarg; break; case 'i': install = 1; break; } }