From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id E18BB398B145 for ; Wed, 10 Mar 2021 18:32:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E18BB398B145 Received: by mail-wm1-x32a.google.com with SMTP id r10-20020a05600c35cab029010c946c95easo11340579wmq.4 for ; Wed, 10 Mar 2021 10:32:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EXmvdA05gwvklwcoqJ0X5FCRQW8+WlZ6BE5TEg8JlFw=; b=amcdfCanoMlu2Xy2LmsRPtn9y+hO/pqea+TG3yQPS7jyIiPffEvqhy4VlHlXH4keR5 Ve20bJmfmpmyd9OQGawMDEhBPzIjSYCcn73iTogVKcds6gfvFIAswCcZNRhNG/17Kv7C bPqImabWn6tRvziszFiG12e7ghBhXgwIn2HOlPSMOU2vL4XzWuWoZ8iUREjgpi6KP7xG Iposx5bKMeBM0TVBc/opmCcakXFoPaBxBop6mk6Xl6prEg5Ow6/McycorQubeoX4fywd Dx8RWqU5R5nTwWsGsvls66LPeqLeHsgNZnIaCWt9Evrrb3UTXiOyRnf6FDqJmIvfUOFH /GUQ== X-Gm-Message-State: AOAM532iet+ClvJTDUECyPZTZjqyh8yqStVSK4qKOAzezaAWsy5zkrLf ehQr0+E2XJjlIhA3nUsTEww= X-Google-Smtp-Source: ABdhPJx9KaA8iy/s8seJmvivCGPKPNWw/7McuXz8zVPY56ru30Du1YUoshFPD8U/SFTM1bAIwFsJ+Q== X-Received: by 2002:a1c:7fc9:: with SMTP id a192mr4500616wmd.15.1615401141086; Wed, 10 Mar 2021 10:32:21 -0800 (PST) Received: from localhost.localdomain ([170.253.51.130]) by smtp.googlemail.com with ESMTPSA id k11sm325374wmj.1.2021.03.10.10.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 10:32:20 -0800 (PST) From: Alejandro Colomar To: mtk.manpages@gmail.com Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Subject: [PATCH 18/24] strsep.3: SYNOPSIS: Use 'restrict' in prototypes Date: Wed, 10 Mar 2021 19:31:44 +0100 Message-Id: <20210310183149.194717-19-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1.721.g45526154a5 In-Reply-To: <20210310183149.194717-1-alx.manpages@gmail.com> References: <20210310183149.194717-1-alx.manpages@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2021 18:32:23 -0000 glibc uses 'restrict' in strsep(). Let's use it here too. .../glibc$ grep_glibc_prototype strsep string/string.h:455: extern char *strsep (char **__restrict __stringp, const char *__restrict __delim) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar --- man3/strsep.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man3/strsep.3 b/man3/strsep.3 index 9d40e208b..91c379bdb 100644 --- a/man3/strsep.3 +++ b/man3/strsep.3 @@ -37,7 +37,7 @@ strsep \- extract token from string .nf .B #include .PP -.BI "char *strsep(char **" stringp ", const char *" delim ); +.BI "char *strsep(char **restrict " stringp ", const char *restrict " delim ); .fi .PP .RS -4 -- 2.30.1.721.g45526154a5