From 2b9a9eef8bdc75370cb6158a2991d2f20b054433 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Thu, 25 Aug 2011 04:07:20 -0700 Subject: [PATCH] remove compiler warnings --- drivers/net/util.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/util.c b/drivers/net/util.c index cf06fdd6..415d5fd0 100644 --- a/drivers/net/util.c +++ b/drivers/net/util.c @@ -17,13 +17,14 @@ * This file is part of MetalSVM. */ +#include #include "util.h" - -__inline int isprint(char e) +inline int isprint(unsigned char e) { - if (e < 0x30 || e > 0x80) + if ((e < 0x30) || (e > 0x80)) return 0; + return 1; } // hex_dumb display network packets in a good way