diff options
author | yar <yar@FreeBSD.org> | 2006-12-23 22:39:38 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-12-23 22:39:38 +0000 |
commit | ed3e8ace9a04157dd75e5d462ba07f021eb8f3f2 (patch) | |
tree | c715c0e37bdf6f41cfd8c076013e8cab3476f1e7 /usr.bin/systat | |
parent | 01a38eca2786fe54783f0501adf4ec77899c966b (diff) | |
download | FreeBSD-src-ed3e8ace9a04157dd75e5d462ba07f021eb8f3f2.zip FreeBSD-src-ed3e8ace9a04157dd75e5d462ba07f021eb8f3f2.tar.gz |
Add missing things: a prototype and a const qualifier.
Found by: WARNS=4
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/swap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/systat/swap.c b/usr.bin/systat/swap.c index 9b0a33bf..e4a5dda 100644 --- a/usr.bin/systat/swap.c +++ b/usr.bin/systat/swap.c @@ -95,6 +95,8 @@ closeswap(w) static struct kvm_swap kvmsw[NSWAP]; static int kvnsw, okvnsw; +static void calclens(void); + #define CONVERT(v) ((int)((int64_t)(v) * pagesize / blocksize)) static void @@ -159,7 +161,7 @@ fetchswap() void labelswap() { - char *name; + const char *name; int i; fetchswap(); |