From 759fbc65045fa4c350166d423ace3b4f6dddc8c5 Mon Sep 17 00:00:00 2001 From: he Date: Wed, 27 Jul 2005 09:29:02 +0000 Subject: [PATCH] The return type from getopt(3) is int, not char. Besides, char is not guaranteed to be signed, so comparison with -1 will cause a warning (turned error) for some of our ports (e.g. our arm ports). Fix this by making the 'ch' variable an int instead of a char. --- usr.bin/vndcompress/vndcompress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/vndcompress/vndcompress.c b/usr.bin/vndcompress/vndcompress.c index a6ea59a16a55..b34f6fb8c239 100644 --- a/usr.bin/vndcompress/vndcompress.c +++ b/usr.bin/vndcompress/vndcompress.c @@ -1,4 +1,4 @@ -/* $Id: vndcompress.c,v 1.2 2005/07/25 12:25:54 wiz Exp $ */ +/* $Id: vndcompress.c,v 1.3 2005/07/27 09:29:02 he Exp $ */ /* * Copyright (c) 2005 by Florian Stoehr @@ -354,7 +354,7 @@ int main(int argc, char **argv) { char *ep, *p; - char ch; + int ch; setprogname(argv[0]);