From 9380652725e1c20da7037961dda9dfd81ba47322 Mon Sep 17 00:00:00 2001 From: Teemu Toivola Date: Tue, 20 Dec 2016 23:48:57 +0200 Subject: [PATCH] fix compiler warning --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index 30f8d39..0edcbcc 100644 --- a/src/misc.c +++ b/src/misc.c @@ -46,7 +46,7 @@ int kerneltest(void) printf("vnStat is likely not to work correctly. Upgrading the kernel\n"); printf("is likely to solve this problem.\n\n"); return 1; - } else if ((bmax-bmin)>cfg.bvar) { + } else if ((bmax-bmin)>(uint32_t)cfg.bvar) { printf("The current kernel has a boot time variation greater than assumed\n"); printf("in the vnStat config. That it likely to cause errors in results.\n"); printf("Set \"BootVariation\" to something greater than \"%d\" and run this\n", (int)(bmax-bmin)); -- 2.40.0