Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/regress/lib/libc/stdlib/getopt Make this file compile withou...



details:   https://anonhg.NetBSD.org/src/rev/d1527bf26af5
branches:  trunk
changeset: 534095:d1527bf26af5
user:      agc <agc%NetBSD.org@localhost>
date:      Tue Jul 16 10:12:28 2002 +0000

description:
Make this file compile without warnings on systems where chars are unsigned.

diffstat:

 regress/lib/libc/stdlib/getopt/getopt.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f593670a51cb -r d1527bf26af5 regress/lib/libc/stdlib/getopt/getopt.c
--- a/regress/lib/libc/stdlib/getopt/getopt.c   Tue Jul 16 10:04:39 2002 +0000
+++ b/regress/lib/libc/stdlib/getopt/getopt.c   Tue Jul 16 10:12:28 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getopt.c,v 1.1 2002/07/15 22:04:00 christos Exp $      */
+/*     $NetBSD: getopt.c,v 1.2 2002/07/16 10:12:28 agc Exp $   */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
        char buf[1024];
        char *args[100];
        char arg[100];
-       char nargs = -1;
+       int nargs = -1;
        int c;
 
        while ((line = fparseln(stdin, &len, &lineno, NULL, 0)) != NULL) {



Home | Main Index | Thread Index | Old Index