diff options
author | joerg <joerg@FreeBSD.org> | 1995-03-19 13:29:28 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-03-19 13:29:28 +0000 |
commit | c6030c6511c69b69a216c893957b01bfc264d365 (patch) | |
tree | 163891f0a6f18e48e3d38e4d107ad82c2f5c570a /bin/test/test.c | |
parent | 568f2efc88b72b511e26d42250ac4250a6610415 (diff) | |
download | FreeBSD-src-c6030c6511c69b69a216c893957b01bfc264d365.zip FreeBSD-src-c6030c6511c69b69a216c893957b01bfc264d365.tar.gz |
You will find enclosed some changes to make gcc -Wall more happy in
/usr/src/bin. Note that some patches are still needed in that directory.
I (Joerg) finished most of Philippe's cleanup. /bin/sh will still
need *allot* of work, however.
Submitted by: charnier@lirmm.fr (Philippe Charnier)
Diffstat (limited to 'bin/test/test.c')
-rw-r--r-- | bin/test/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/test/test.c b/bin/test/test.c index 3b3f4d0..d9a22e4 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: test.c,v 1.8 1994/11/05 20:24:49 ache Exp $ + * $Id: test.c,v 1.9 1994/11/05 20:48:06 ache Exp $ */ #ifndef lint @@ -115,7 +115,7 @@ main(argc, argv) struct value *valsp; struct filestat fs; char c, **ap, *opname, *p; - int binary, nest, op, pri, ret_val, skipping; + int binary, nest, op = 0, pri, ret_val, skipping; if ((p = argv[0]) == NULL) errx(2, "test: argc is zero"); @@ -248,7 +248,7 @@ main(argc, argv) valsp->u.num); #else (void)sprintf(p, - "%d", valsp->u.num); + "%ld", valsp->u.num); #endif valsp->u.string = p; } else if (valsp->type == BOOLEAN) { |