Page MenuHomeFreeBSD

D42041.diff
No OneTemporary

D42041.diff

diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c
--- a/lib/libprocstat/libprocstat.c
+++ b/lib/libprocstat/libprocstat.c
@@ -347,7 +347,7 @@
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 @@
/*
* 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 @@
/*
* 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 @@
unsigned int *cntp)
{
- switch(procstat->type) {
+ switch (procstat->type) {
case PROCSTAT_KVM:
warnx("kvm method is not supported");
return (NULL);
@@ -2066,7 +2066,7 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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);

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 13, 1:54 AM (20 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15774870
Default Alt Text
D42041.diff (3 KB)

Event Timeline