From nobody Mon Nov 29 15:43:10 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 604E618BCA91; Mon, 29 Nov 2021 15:43:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2qPW3STqz4nhZ; Mon, 29 Nov 2021 15:43:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A441925237; Mon, 29 Nov 2021 15:43:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1ATFhAWv065874; Mon, 29 Nov 2021 15:43:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATFhAX7065873; Mon, 29 Nov 2021 15:43:10 GMT (envelope-from git) Date: Mon, 29 Nov 2021 15:43:10 GMT Message-Id: <202111291543.1ATFhAX7065873@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 412fd7a34cf9 - main - setproctitle_internal(): remove kbuf local, it is write-only List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 412fd7a34cf99727f0aa5c70fd694cf06094d831 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638200592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NoERD7bjW+QQAcs45Up/7tLL/z3bFoqOapyPtXQfuCM=; b=OegUi1kYagW2Ddrh9uXG9MUMBVnAhWXykVDqTAuhxhE+Q5k6XSHIJi5WAWHpG8Iab8potT F5neRTBGqhQ6RqIDmFvvtuRmeXWcGFElnm0VoQEx6kZ1M4l2aHM7nC0OhqGuCfUKeF0OFX q6sGNoj9HtLkPBQiKpfuxGmAq3utnHbPlahSDt6kliXltX6UCnWxsE5HrhNHLxwti+7jhk KdvRY9FCAZqVAhrDlYco6U3Kfnsl7hzgJCIWm6BoNkpKCff943aCJqMVIw1nvVW3f0IrB5 bjSOGkGGID/amMo+pJ9QCC+uLQQ7OvIbN/mreQcE8nyJCqUTE4yDWedIhiY17g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638200592; a=rsa-sha256; cv=none; b=hA1aYQRyjRHe1HsM2ucY3KhxzWQLchAAVBmHoqT6KucxdK2YVbxbCjP9FaKlLkltxr+ExE iIGLTZN7OaLZoA7aeXybjJcRMsUTVPaD457j4doj2uggYDmzN2oL/cDxK+NaYINSd30uhD z/iQDCeHQ0d1VXoYyNvRlov9/6IGrWqdY8iA9jf4lKu7bHRGvFEhXFKApusSGEpbej8ghv zNMB1zkxXM0UZPll+cBWjn97jASIYP+JPAYWaN8vU1d/qKidcQkzlnVcfkQWpjhnxbTzs7 IpUtixlFp6NXCOEygdmfAec1cyyaYVLXHJdxvMyQ6lC/0bn0ZllEokrviYGkKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=412fd7a34cf99727f0aa5c70fd694cf06094d831 commit 412fd7a34cf99727f0aa5c70fd694cf06094d831 Author: Konstantin Belousov AuthorDate: 2021-11-28 02:51:45 +0000 Commit: Konstantin Belousov CommitDate: 2021-11-29 15:39:51 +0000 setproctitle_internal(): remove kbuf local, it is write-only Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/libc/gen/setproctitle.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/libc/gen/setproctitle.c b/lib/libc/gen/setproctitle.c index 3f858952255c..08612e99d9bb 100644 --- a/lib/libc/gen/setproctitle.c +++ b/lib/libc/gen/setproctitle.c @@ -62,7 +62,7 @@ setproctitle_internal(const char *fmt, va_list ap) static struct ps_strings *ps_strings; static char *buf = NULL; static char *obuf = NULL; - static char **oargv, *kbuf; + static char **oargv; static int oargc = -1; static char *nargv[2] = { NULL, NULL }; char **nargvp; @@ -103,12 +103,10 @@ setproctitle_internal(const char *fmt, va_list ap) nargvp = nargv; nargc = 1; - kbuf = buf; } else if (*obuf != '\0') { /* Idea from NetBSD - reset the title on fmt == NULL */ nargvp = oargv; nargc = oargc; - kbuf = obuf; } else /* Nothing to restore */ return (NULL);