From ed3e8ace9a04157dd75e5d462ba07f021eb8f3f2 Mon Sep 17 00:00:00 2001 From: yar Date: Sat, 23 Dec 2006 22:39:38 +0000 Subject: Add missing things: a prototype and a const qualifier. Found by: WARNS=4 --- usr.bin/systat/swap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/systat') 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(); -- cgit v1.1