Fixed a stupid bug with the return value type of getopt.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 26 Feb 2010 19:21:52 +0000 (20:21 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 26 Feb 2010 19:21:52 +0000 (20:21 +0100)
dus.c

diff --git a/dus.c b/dus.c
index b6c8851..24dcc28 100644 (file)
--- a/dus.c
+++ b/dus.c
@@ -230,7 +230,7 @@ void print_sorted(struct file_with_size *root, int height) {
 /**********************************************************************/
 
 int main(int argc, char **argv) {
-  char c;
+  int c;
   struct file_with_size *root;
 
   root = 0;