From nobody Thu Oct 26 17:37:32 2023 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 4SGY0F1Z6Cz4y5Fm; Thu, 26 Oct 2023 17:37:33 +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 4SGY0F127Yz4ZPl; Thu, 26 Oct 2023 17:37:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698341853; 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=JTpKZG3R+aMwxNYlKBuqpqZ75T5MoaUTNcMjg1kvTzI=; b=jfVYwKGhASZLUEOEssYhpKogrx6dYo391wzCz+FM9mCs5Oh25xfNJQqUJsWEeg0E52IWeM CvxrzhmWCvcgbCV0kLXrT2ym4pHmtrlOPKCWD9XsU8NdQKIYviE3QFdR564I4VWxrEmwOh aIC8OYTNpcxbVyTZjS8xw5cZa8Mc3wgpZYIcjjzY53cFfXqdnJNM5UUBzx9PoejvoRgO8p j3kPuvd3Vd0j3iKGDkn66Rd+QpMVdrnaDqNg7DxsHPcSfVVca4ZCJiaA2p1ub2tNEljqhu S8GXK7JK6uz0x6LcBaUc6cmglM7SPVPwKskYo6l/gieGlPhUpXO4a2KoD87qIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698341853; 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=JTpKZG3R+aMwxNYlKBuqpqZ75T5MoaUTNcMjg1kvTzI=; b=u1h8vXdfJQlGWZRGEbJpdEJgXPB1jaOAZXKKs4Gj8WqmkNtbMEFZqChBxh+MhdwApXpNYF sgmhczAcFbGzxas+51OeKDRyfNjM0bgDSxtV9lRJVgn3FRjCUSxc3gFYk8hh7uSpTgGcPb 4mE4LmF9Tnfzl99eBNoAdNmS9RAwdoUIWkYTaORMavxWeSp8lMz0D2wqmGRxg+nCMWlAcZ LvPI4BaUF/hccfKpOgQjz7JIBHLUFJJAdJZQJfbEroVZQ3s7HV7uI88Fs82WVyqKlADcGJ gn2f1eKlMZNOwDBavy76IyEnxITzkQ66J+t4PApLvKX1hfH2VdOmZnNftInxZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698341853; a=rsa-sha256; cv=none; b=G2c64+vBZxwgGm/U/6jIHLryq8SM4fn8UUaceYWl8fJ6rnZRJ7lKfn7wbN15UYDeaiL+4s 9oeu6bVaPoDwiE2XUCdsAAfWiUke+NCQ8Y4bhjhCjO/ImzOJTP5DNFLwnr5z/LQQKJ1ZCq 9shtfC5jt16yVLOPtjGvY4LzH6XFOx0lxh1c0zEZzkUDRSON0rwMTlKx5sIsqQMgRLKzhe zDpjOhyvidEZ8XYCNGb9YMcJE9DPISHozESKTaIO8QHE1sDvN8GPXvODMK9/aFMQd/NgHH cF28xt24uDtzhC/moIoNcwu51L1MPK/TjetAnmebIZ23t+VwIV2UAPqW1yO9FA== 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 4SGY0F07Qczgcr; Thu, 26 Oct 2023 17:37:33 +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 39QHbWcH089669; Thu, 26 Oct 2023 17:37:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39QHbWZG089666; Thu, 26 Oct 2023 17:37:32 GMT (envelope-from git) Date: Thu, 26 Oct 2023 17:37:32 GMT Message-Id: <202310261737.39QHbWZG089666@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Brooks Davis Subject: git: b2f6c1f5488f - stable/14 - libprocstat: style: space after switch 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: brooks X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: b2f6c1f5488f93601e8d197bb6f5f6a99a0a9847 Auto-Submitted: auto-generated The branch stable/14 has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=b2f6c1f5488f93601e8d197bb6f5f6a99a0a9847 commit b2f6c1f5488f93601e8d197bb6f5f6a99a0a9847 Author: Brooks Davis AuthorDate: 2023-10-02 21:50:00 +0000 Commit: Brooks Davis CommitDate: 2023-10-25 23:30:37 +0000 libprocstat: style: space after switch Style demands a space after the switch keyword. Noticed reviewing code in CheriBSD that propagated the style bug. Reported by: markj Sponsored by: DARPA Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D42041 (cherry picked from commit ccac440f7cbb013de41aa3933f3f7be77225c44f) --- lib/libprocstat/libprocstat.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c index 0af79b6e63a0..a302310dfb9a 100644 --- a/lib/libprocstat/libprocstat.c +++ b/lib/libprocstat/libprocstat.c @@ -347,7 +347,7 @@ struct filestat_list * procstat_getfiles(struct procstat *procstat, struct kinfo_proc *kp, int mmapped) { - switch(procstat->type) { + switch (procstat->type) { case PROCSTAT_KVM: return (procstat_getfiles_kvm(procstat, kp, mmapped)); case PROCSTAT_SYSCTL: @@ -1527,7 +1527,7 @@ procstat_get_socket_info_kvm(kvm_t *kd, struct filestat *fst, /* * Protocol specific data. */ - switch(dom.dom_family) { + switch (dom.dom_family) { case AF_INET: case AF_INET6: if (proto.pr_protocol == IPPROTO_TCP) { @@ -1600,7 +1600,7 @@ procstat_get_socket_info_sysctl(struct filestat *fst, struct sockstat *sock, /* * Protocol specific data. */ - switch(sock->dom_family) { + switch (sock->dom_family) { case AF_INET: case AF_INET6: if (sock->proto == IPPROTO_TCP) { @@ -1961,7 +1961,7 @@ procstat_getvmmap(struct procstat *procstat, struct kinfo_proc *kp, unsigned int *cntp) { - switch(procstat->type) { + switch (procstat->type) { case PROCSTAT_KVM: warnx("kvm method is not supported"); return (NULL); @@ -2066,7 +2066,7 @@ gid_t * procstat_getgroups(struct procstat *procstat, struct kinfo_proc *kp, unsigned int *cntp) { - switch(procstat->type) { + switch (procstat->type) { case PROCSTAT_KVM: return (procstat_getgroups_kvm(procstat->kd, kp, cntp)); case PROCSTAT_SYSCTL: @@ -2144,7 +2144,7 @@ int procstat_getumask(struct procstat *procstat, struct kinfo_proc *kp, unsigned short *maskp) { - switch(procstat->type) { + switch (procstat->type) { case PROCSTAT_KVM: return (procstat_getumask_kvm(procstat->kd, kp, maskp)); case PROCSTAT_SYSCTL: @@ -2234,7 +2234,7 @@ int procstat_getrlimit(struct procstat *procstat, struct kinfo_proc *kp, int which, struct rlimit* rlimit) { - switch(procstat->type) { + switch (procstat->type) { case PROCSTAT_KVM: return (procstat_getrlimit_kvm(procstat->kd, kp, which, rlimit)); @@ -2293,7 +2293,7 @@ int procstat_getpathname(struct procstat *procstat, struct kinfo_proc *kp, char *pathname, size_t maxlen) { - switch(procstat->type) { + switch (procstat->type) { case PROCSTAT_KVM: /* XXX: Return empty string. */ if (maxlen > 0) @@ -2366,7 +2366,7 @@ procstat_getosrel_core(struct procstat_core *core, int *osrelp) int procstat_getosrel(struct procstat *procstat, struct kinfo_proc *kp, int *osrelp) { - switch(procstat->type) { + switch (procstat->type) { case PROCSTAT_KVM: return (procstat_getosrel_kvm(procstat->kd, kp, osrelp)); case PROCSTAT_SYSCTL: @@ -2506,7 +2506,7 @@ Elf_Auxinfo * procstat_getauxv(struct procstat *procstat, struct kinfo_proc *kp, unsigned int *cntp) { - switch(procstat->type) { + switch (procstat->type) { case PROCSTAT_KVM: warnx("kvm method is not supported"); return (NULL); @@ -2620,7 +2620,7 @@ struct kinfo_kstack * procstat_getkstack(struct procstat *procstat, struct kinfo_proc *kp, unsigned int *cntp) { - switch(procstat->type) { + switch (procstat->type) { case PROCSTAT_KVM: warnx("kvm method is not supported"); return (NULL); @@ -2749,7 +2749,7 @@ fail: struct advlock_list * procstat_getadvlock(struct procstat *procstat) { - switch(procstat->type) { + switch (procstat->type) { case PROCSTAT_KVM: warnx("kvm method is not supported"); return (NULL);