Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/sort And make usage() test for NULL explicitly..



details:   https://anonhg.NetBSD.org/src/rev/1845c93e383b
branches:  trunk
changeset: 502212:1845c93e383b
user:      soren <soren%NetBSD.org@localhost>
date:      Sat Jan 13 20:21:56 2001 +0000

description:
And make usage() test for NULL explicitly..

diffstat:

 usr.bin/sort/sort.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 67a639c46599 -r 1845c93e383b usr.bin/sort/sort.c
--- a/usr.bin/sort/sort.c       Sat Jan 13 20:20:47 2001 +0000
+++ b/usr.bin/sort/sort.c       Sat Jan 13 20:21:56 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sort.c,v 1.17 2001/01/13 20:20:47 soren Exp $  */
+/*     $NetBSD: sort.c,v 1.18 2001/01/13 20:21:56 soren Exp $  */
 
 /*-
  * Copyright (c) 1993
@@ -51,7 +51,7 @@
 #endif /* not lint */
 
 #ifndef lint
-__RCSID("$NetBSD: sort.c,v 1.17 2001/01/13 20:20:47 soren Exp $");
+__RCSID("$NetBSD: sort.c,v 1.18 2001/01/13 20:21:56 soren Exp $");
 __SCCSID("@(#)sort.c   8.1 (Berkeley) 6/6/93");
 #endif /* not lint */
 
@@ -294,7 +294,7 @@
 usage(msg)
        const char *msg;
 {
-       if (msg)
+       if (msg != NULL)
                (void)fprintf(stderr, "sort: %s\n", msg);
        (void)fprintf(stderr, "usage: [-o output] [-cmubdfinrsS] [-t char] ");
        (void)fprintf(stderr, "[-T char] [-k keydef] ... [files]\n");



Home | Main Index | Thread Index | Old Index