From patchwork Wed Apr 29 06:29:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denys Vlasenko X-Patchwork-Id: 11516061 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EDA2E1805 for ; Wed, 29 Apr 2020 06:30:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CABCC206F0 for ; Wed, 29 Apr 2020 06:30:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="g3xP1k/h" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726181AbgD2GaI (ORCPT ); Wed, 29 Apr 2020 02:30:08 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:41633 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726158AbgD2GaI (ORCPT ); Wed, 29 Apr 2020 02:30:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588141807; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/Q6xmC+jDVNQNjIxi1NhA+AHHXYNbNmgd0J3XsbTzyk=; b=g3xP1k/hmoGRxNGce07UPoxz5vQLi9QzViFiUSgQXhcN+YHyZWnhaylNGaXsY/INoOWFb+ EgWpKI/QdaqEQXyISfiLU/LLRmN3b9WEYBofwLZAAGvdsSSOsEaT2c2FamTZf8u9aLP1cx W3RQp1+qz0/HK7BQbMNq7JhTU7AAxmE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-323-j5n0nbhjNoWY65nv2v2Yzg-1; Wed, 29 Apr 2020 02:30:02 -0400 X-MC-Unique: j5n0nbhjNoWY65nv2v2Yzg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A59BE107ACF3; Wed, 29 Apr 2020 06:30:01 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.193.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id BC29827CC4; Wed, 29 Apr 2020 06:30:00 +0000 (UTC) From: Denys Vlasenko To: Herbert Xu , dash@vger.kernel.org Cc: Denys Vlasenko Subject: [PATCH] Remove unused expandmeta() flag parameter Date: Wed, 29 Apr 2020 08:29:53 +0200 Message-Id: <20200429062953.19042-1-dvlasenk@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: dash-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dash@vger.kernel.org Signed-off-by: Denys Vlasenko --- src/expand.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/expand.c b/src/expand.c index 4a5d75a..985cd70 100644 --- a/src/expand.c +++ b/src/expand.c @@ -118,7 +118,7 @@ STATIC char *evalvar(char *, int); static size_t strtodest(const char *p, int flags); static size_t memtodest(const char *p, size_t len, int flags); STATIC ssize_t varvalue(char *, int, int, int); -STATIC void expandmeta(struct strlist *, int); +STATIC void expandmeta(struct strlist *); #ifdef HAVE_GLOB STATIC void addglob(const glob_t *); #else @@ -205,7 +205,7 @@ expandarg(union node *arg, struct arglist *arglist, int flag) ifsbreakup(p, -1, &exparg); *exparg.lastp = NULL; exparg.lastp = &exparg.list; - expandmeta(exparg.list, flag); + expandmeta(exparg.list); } else { sp = (struct strlist *)stalloc(sizeof (struct strlist)); sp->text = p; @@ -1155,9 +1155,7 @@ out: #ifdef HAVE_GLOB STATIC void -expandmeta(str, flag) - struct strlist *str; - int flag; +expandmeta(struct strlist *str) { /* TODO - EXP_REDIR */ @@ -1221,7 +1219,7 @@ STATIC unsigned expdir_max; STATIC void -expandmeta(struct strlist *str, int flag) +expandmeta(struct strlist *str) { static const char metachars[] = { '*', '?', '[', 0