From nobody Mon Dec 06 00:28:01 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 6F41018BEA0E; Mon, 6 Dec 2021 00:28:03 +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 4J6kmL2hY6z4XjL; Mon, 6 Dec 2021 00:28:02 +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 19AD621E8C; Mon, 6 Dec 2021 00:28:02 +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 1B60S12d084745; Mon, 6 Dec 2021 00:28:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B60S1g5084744; Mon, 6 Dec 2021 00:28:01 GMT (envelope-from git) Date: Mon, 6 Dec 2021 00:28:01 GMT Message-Id: <202112060028.1B60S1g5084744@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 065166c76a69 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 065166c76a69c239af27be30ddb689b7ccda135d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638750482; 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=2yKsSK6ce6VZ9EnOrIGswFUxo0+Uvi8475H3X9rU+vw=; b=OwrWw8eZOv3I5Qe6SiFcIT92MuA1rDcUc1r/3CmKWPjJa3yPrwHZ6K/W3hcfQ4exQwO1e5 GQIssJi8BhQQffR8t7tZeGxy31sFv3+o5L/XAEONhYtcHqxQrS9sQhbLRTRQAQO/9djn0T UKT9ecJ3gYWQazeB4VczVk/Z19l+iTV8gzGdm/jRwIbb7vFS7yqWxa4ETQKQkutxhzcg8u lmQLKLIRsD5aZ3gMoJlaZ7QYlP814/I+PyJCXVmK4Ph031nbyjwzyPF47R8yAnW2q2okJk b3ggm8h+es4mtml++VJHcmPOG3HTolmezRYKN1xeWpX7+sC3MQmasWuH/XHvzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638750482; a=rsa-sha256; cv=none; b=QnO6L5podbgfE8bJlCjtE9Z0s5BYCJ9DYX+i4nbIrj58Q6GO1K2syIuAvRZws+bZ1zm8od fQtaToJhZuIiaUhz9l8sFJuBE49wTNB3KqJyKbIEjTIQJNUGUd9lDzzc/8D9WN1FMQwxA6 ki2dYI1fo3HZVhk+LX3voYfG7R6IYVVozCdrZ89nbcKbC03XiZy1L9sH9CBlS5DnQ3ZoEN 1LWvDrceDqf1naOvm/IJ1Ul48GwgJDVDpwT49YfnjWOJx9OEdC8TKtos8S1BVuQ/Dsj1ib m51RbRgiH/MjoI9tDZi8LY0JtBhi9V4wm+WXNtdwZS5a7bGfXTcRTEuBAmb4+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=065166c76a69c239af27be30ddb689b7ccda135d commit 065166c76a69c239af27be30ddb689b7ccda135d Author: Konstantin Belousov AuthorDate: 2021-11-28 02:51:45 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-06 00:23:45 +0000 setproctitle_internal(): remove kbuf local, it is write-only (cherry picked from commit 412fd7a34cf99727f0aa5c70fd694cf06094d831) --- 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);