From nobody Thu Sep 28 15:52:23 2023 X-Original-To: dev-commits-src-main@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 4RxHzr1SMHz4tyLk; Thu, 28 Sep 2023 15:52:24 +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 4RxHzq6f5gz4Jqm; Thu, 28 Sep 2023 15:52:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695916343; 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=jw7KvOlx1VSa0coKcBybYAWZxx9XOl1OLK1ZosOgp8A=; b=kjxR+blxmVhdnD8NSjYcxUB65Rgv9hBr6ZnhMPF1u1TW0QjwBbolLgW2yG/p2Bp5DqyjWc Sd1wHObiLytXs4L/oTxadc4csfOV2VdTG84xLr7t4w8k1ABCa2HnlOcGwLOPg08Kf+xAni oZmxNuTD/yolVsaKc94esHTzxgRiGvyJOeYl2XFisndNGbL48KTyHrOgnbY1kCSMVvzPPT e94ZOKrA9CIiGAZsFxiapBAgw+pyPb0aq91JZpo1QAagSbf9ujcVbniS61207ptA/uIeaU NxgT9Tcldfks/bxzVn557ub/XqjR8Pwx7WXV1Xmc/XTW3vW5r5LC4qVoaqWKoQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695916343; a=rsa-sha256; cv=none; b=Z4IY7/pFMami49IlUE5j1qgAVUBxkO4GY+BXL119RJ3saRWnHPk87Hk2tJbrjt/A6oZsXS /aarbAwgcLyt03HbV1GqKJE2zINEbfUWpwTHtSSiqYkAs55OEpPsx7jTAxdpaaXPhjxhb+ W0EJhCHXxFp8PetfrIMwUvhHKN3L1eaBhDl1uOhSAu+qvaykbiU0rFRDORCkEbjncgtImO ni3Yc/PtJzG3yod2VHBwMEx8ije6I9Rm2nOJBSHjPXU0ePJElYxBg+s6+gVv1+Ex8Ql0LW elQwagWqByy74wvFYS/NzuFZhYTJIXsbPRiistNC+kTmnz5lyhHxSTEowt7PwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695916343; 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=jw7KvOlx1VSa0coKcBybYAWZxx9XOl1OLK1ZosOgp8A=; b=xzfqzlVPGCgc5L87ZvP17sHkSbzYdFLipHuXZjYtFCX+Y7MaoNXhhbJ7gVqB4gJQnR+L6v k0cWik64/pBZB4K1Yrg4F17ZsIWJCzUgBoOQ3kRpBXqCkJX9VoYrx5CFiwjuR8IHlNR6MU YtqVp0VIw54bL/nhsPEiWOXCiT0g3MecBaUrl5kLUD8eB2rmrnJpv2RLDo7JAJy+uRHEAG xHfelIJhSleMzxixIvLP+HMko0/DYc+UPJASPcYyEdlqljI4rHc9vYctl1yh10/fDJJxbQ oFbLW18jq+Y4sEhAamtKyZ+mhESS1tEADBy5vBE2M5z46MZdxS46/Voh4NpD9w== 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 4RxHzq5BSkzDJ2; Thu, 28 Sep 2023 15:52:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38SFqNLc021571; Thu, 28 Sep 2023 15:52:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38SFqNEI021568; Thu, 28 Sep 2023 15:52:23 GMT (envelope-from git) Date: Thu, 28 Sep 2023 15:52:23 GMT Message-Id: <202309281552.38SFqNEI021568@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 8113e030f96f - main - syslogd: Move fhead under filed struct declaration List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8113e030f96fb29a6ea03d55377cb97725c20576 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=8113e030f96fb29a6ea03d55377cb97725c20576 commit 8113e030f96fb29a6ea03d55377cb97725c20576 Author: Jake Freeland AuthorDate: 2023-09-01 02:49:07 +0000 Commit: Mark Johnston CommitDate: 2023-09-28 15:51:52 +0000 syslogd: Move fhead under filed struct declaration Reviewed by: markj, emaste MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41360 --- usr.sbin/syslogd/syslogd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 3e4dc25603b0..0f0a3cac1417 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -307,6 +307,10 @@ struct filed { #define FFLAG_SYNC 0x01 #define FFLAG_NEEDSYNC 0x02 }; +static STAILQ_HEAD(, filed) fhead = + STAILQ_HEAD_INITIALIZER(fhead); /* Log files that we write to */ +static struct filed consfile; /* Console */ + /* * Queue of about-to-be dead processes we should watch out for. @@ -367,10 +371,6 @@ static const char *TypeNames[] = { "FORW", "USERS", "WALL", "PIPE" }; -static STAILQ_HEAD(, filed) fhead = - STAILQ_HEAD_INITIALIZER(fhead); /* Log files that we write to */ -static struct filed consfile; /* Console */ - static int Debug; /* debug flag */ static int Foreground = 0; /* Run in foreground, instead of daemonizing */ static int resolve = 1; /* resolve hostname */