From 499a1062fa85745344e98b48fb305d0cb87ee129 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Sat, 23 Dec 2006 22:39:38 +0000 Subject: [PATCH] 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(-) diff --git a/usr.bin/systat/swap.c b/usr.bin/systat/swap.c index 9b0a33bf73c6..e4a5dda50a94 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();