Message ID | 1513706639-12259-2-git-send-email-adhemerval.zanella@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4488730qgn; Tue, 19 Dec 2017 10:04:27 -0800 (PST) X-Google-Smtp-Source: ACJfBoty6jkyjKcrG2HUmBR15zqKds2k9Ko3tdiMWJg+h0HCWEB9nuieH04qbJ249hUl6q3RpErn X-Received: by 10.159.195.73 with SMTP id z9mr4175641pln.186.1513706667689; Tue, 19 Dec 2017 10:04:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513706667; cv=none; d=google.com; s=arc-20160816; b=l/G6h9LvGrhQZnQTTDGktVooFmHcSdIZu5weB7+agiAuG2TMXvrgzMkfJxn10OK8do k671mdjxARkJPiM7tHFMNvoWnMAmOAqF076H6l6onrXAT1bIcLaPyGiP5ON3b9P0Yiqz MbaTKSRSevn3NbqqjW9VNQhjguOmfrHvA6e99fcpdVHonBpDvVyDL1xWuNKEH1b2st9X lp3MzcG9CZPegtLi4WpofgaBcRzsatHrYMieSUev872Axqzx6PkeyJ2BMaPT4qHg9jsO w17QeFV5tH3aBJMajtB1nvHqYdzzVlYvKgyRZqYXRSfeQ5eVm6orHmHgqjJZXnmzeoCz sz3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from:delivered-to :sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=L/ytCW77mN8dcaOdWxkPDVlgpenjwlrNHbvd+cNDlT8=; b=AAq2YIo512yrGW5yYrDlKur1b2vHWWdRlT8XJEZ8g409mXVoNR3lhhnGY4QOnmZLuy Oo9NvEkobeMfX/6l3AWXaiV9e8jupQyd6NtQXKD8S56xY/Rm50QzwuXXyYHNjgARx0m+ 5mMHQFSJ5p3p4Vta+V55EEJATDlu33cJyeT4p3kNco7yLLYU87eCryUAjTZZRSJ4Gmkf TScwdvNS7fF3uokpwswpInQ0sV8O8PQ27P0wBWBLmxYkoQZwgBmjsgaY9Xq+LMxFOkJ1 KtZpr2rS+yeFRSu4Di2ZiEb4p/aZEVFrCkh/CxZIF+XOYe8nFQgysY0NYbUE9rZ97XLd bCMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=HuX/bjFC; spf=pass (google.com: domain of libc-alpha-return-88356-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-88356-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <libc-alpha-return-88356-patch=linaro.org@sourceware.org> Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id z13si10313213pgo.335.2017.12.19.10.04.27 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Dec 2017 10:04:27 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-return-88356-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=HuX/bjFC; spf=pass (google.com: domain of libc-alpha-return-88356-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-88356-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=iCZOkfvbTeAfouPy6iF56/ZjPylSX0K aLrAmtYPG2TwtEpZeve+BwEnPhNF7MO+J1uZnJ7GojYKgKCEWkv5GTMbUt+nTPS9 Tgc4uhouS5qC2bCPuwJYX6uD7+LNCOFnSZH+lYymwxok9Q9ZxiJvC4PwP6+S9HEx XxnspGZwAuJc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=EKuTy05PTHI0jbUF7fGoZjjaUXU=; b=HuX/b jFCRzDf+LqvpvcxdlfUJyTBybd94wtm/XGwin3l2ffyMMfwkAOzJl0Un+WsTzmqk rcvHQj966GG+Ii6O9k0wPpjWXQkSEV0++7p5iDaRc5+gua0fttPkbCxnk56FXkv0 JCMvyg/tyWrZvH7mjNbbl98NN2OCh1KQ2VDkaA= Received: (qmail 96225 invoked by alias); 19 Dec 2017 18:04:08 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: <libc-alpha.sourceware.org> List-Unsubscribe: <mailto:libc-alpha-unsubscribe-patch=linaro.org@sourceware.org> List-Subscribe: <mailto:libc-alpha-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-help@sourceware.org>, <http://sourceware.org/ml/#faqs> Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 96132 invoked by uid 89); 19 Dec 2017 18:04:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qk0-f193.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=L/ytCW77mN8dcaOdWxkPDVlgpenjwlrNHbvd+cNDlT8=; b=fpVElQrC/zXES2HUc8jE1mZOt8RJE6r8p436FVw962mGhef0egNV53//QBCm63O2IB cxuzzqD0n3NfNfvKz0JlWGnG8fb9j8+Ar4qssBxg6qCVTqnhs7qDFNnI+BUPuwJ45n1s 8EzpANKjGXaVHawyFBojdcXu8C6vbsnZHsx61ui33O3vXIVcxEH+EMIMH6DQlaByOtZ4 wZIapsRAgleRnRWqihpj2uHaOQjfbTT+332ryi1GEsBSru+6T1Y4uuCgvxny7upEiV4R F4G8aTvZEEZ1suujvmTXGDP3HUztmviRhCDOQ3Nb/gPi23b2pIc6I5dr+rdldCQM6Rgm 1mCQ== X-Gm-Message-State: AKGB3mIvOfM7iOhTGt95ix0052rRKh8V9EXDCYTAhGDQInSwZnqfEiNm qUIW22KHIL3lhLdQ4LcGD0Au9+lg3Eg= X-Received: by 10.55.161.78 with SMTP id k75mr6183264qke.158.1513706645600; Tue, 19 Dec 2017 10:04:05 -0800 (PST) From: Adhemerval Zanella <adhemerval.zanella@linaro.org> To: libc-alpha@sourceware.org Subject: [COMMITTED] glob: Silence warning about void pointer arithmetic Date: Tue, 19 Dec 2017 16:03:59 -0200 Message-Id: <1513706639-12259-2-git-send-email-adhemerval.zanella@linaro.org> In-Reply-To: <1513706639-12259-1-git-send-email-adhemerval.zanella@linaro.org> References: <1513706639-12259-1-git-send-email-adhemerval.zanella@linaro.org> |
Series |
[COMMITTED] glob: Silence warning about void pointer arithmetic
|
expand
|
diff --git a/posix/glob.c b/posix/glob.c index 511ec4b..8557196 100644 --- a/posix/glob.c +++ b/posix/glob.c @@ -641,7 +641,8 @@ __glob (const char *pattern, int flags, int (*errfunc) (const char *, int), { # if defined HAVE_GETPWNAM_R || defined _LIBC size_t ssize = strlen (s.data) + 1; - err = getpwnam_r (s.data, &pwbuf, s.data + ssize, + char *sdata = s.data; + err = getpwnam_r (sdata, &pwbuf, sdata + ssize, s.length - ssize, &p); # else p = getpwnam (s.data);
Sync with gnulib 0e14f025d2. Checked on x86_64-linux-gnu. * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer arithmetic. Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> --- ChangeLog | 3 +++ posix/glob.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) -- 2.7.4