From f6320708a725451f4cd52c3ba9bb1266e1136bb0 Mon Sep 17 00:00:00 2001 From: zrj Date: Mon, 8 Apr 2019 10:41:31 +0300 Subject: [PATCH] libkvm: Minor trailing whitespace cleanup. --- lib/libkvm/kvm.c | 2 +- lib/libkvm/kvm_getswapinfo.c | 14 +++++++------- lib/libkvm/kvm_proc.c | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c index ab2d9c2a5c..bd11bbde2b 100644 --- a/lib/libkvm/kvm.c +++ b/lib/libkvm/kvm.c @@ -236,7 +236,7 @@ _kvm_open(kvm_t *kd, const char *uf, const char *mf, int flag, char *errout) _kvm_syserr(kd, kd->program, "empty file"); goto failed; } - + /* * This is a crash dump. * Initialize the virtual address translation machinery, diff --git a/lib/libkvm/kvm_getswapinfo.c b/lib/libkvm/kvm_getswapinfo.c index 1637a241cf..d2cd35a9a2 100644 --- a/lib/libkvm/kvm_getswapinfo.c +++ b/lib/libkvm/kvm_getswapinfo.c @@ -3,11 +3,11 @@ * * This code is derived from software contributed to The DragonFly Project * by Matthew Dillon - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright @@ -17,7 +17,7 @@ * 3. Neither the name of The DragonFly Project nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific, prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS @@ -30,7 +30,7 @@ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * + * * $FreeBSD: src/lib/libkvm/kvm_getswapinfo.c,v 1.10.2.4 2003/01/12 09:23:13 dillon Exp $ */ @@ -114,9 +114,9 @@ static int kvm_getswapinfo_sysctl(kvm_t *kd, struct kvm_swap *swap_ary, int kvm_getswapinfo( - kvm_t *kd, + kvm_t *kd, struct kvm_swap *swap_ary, - int swap_max, + int swap_max, int flags ) { int i, ti, swi; @@ -241,7 +241,7 @@ nlist_init(kvm_t *kd) static int scanradix( - blmeta_t *scan, + blmeta_t *scan, blmeta_t *scan_cache, swblk_t blk, int64_t radix, diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c index 650c0c3ff2..90bda91ad0 100644 --- a/lib/libkvm/kvm_proc.c +++ b/lib/libkvm/kvm_proc.c @@ -147,7 +147,7 @@ kvm_firstlwp(kvm_t *kd, struct lwp *lwp, struct proc *proc) } /* - * If the current element is the left side of the parent the next element + * If the current element is the left side of the parent the next element * will be a left side traversal of the parent's right side. If the parent * has no right side the next element will be the parent. * @@ -587,7 +587,7 @@ kvm_argv(kvm_t *kd, pid_t pid, u_long addr, int narg, int maxcnt) return (0); /* - * kd->argv : work space for fetching the strings from the target + * kd->argv : work space for fetching the strings from the target * process's space, and is converted for returning to caller */ if (kd->argv == 0) { @@ -845,7 +845,7 @@ kvm_getargv(kvm_t *kd, const struct kinfo_proc *kp, int nchr) if (!buflen) { bufsz = sizeof(buflen); - i = sysctlbyname("kern.ps_arg_cache_limit", + i = sysctlbyname("kern.ps_arg_cache_limit", &buflen, &bufsz, NULL, 0); if (i == -1) { buflen = 0; -- 2.41.0