Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit explicitly pass (void *)0 instead of NULL.



details:   https://anonhg.NetBSD.org/src/rev/9d47ab7343fe
branches:  trunk
changeset: 783958:9d47ab7343fe
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 13 15:46:57 2013 +0000

description:
explicitly pass (void *)0 instead of NULL.

diffstat:

 lib/libedit/readline.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r cb3b8292c5cb -r 9d47ab7343fe lib/libedit/readline.c
--- a/lib/libedit/readline.c    Sun Jan 13 15:34:03 2013 +0000
+++ b/lib/libedit/readline.c    Sun Jan 13 15:46:57 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: readline.c,v 1.106 2012/10/12 23:35:02 christos Exp $  */
+/*     $NetBSD: readline.c,v 1.107 2013/01/13 15:46:57 christos Exp $  */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.106 2012/10/12 23:35:02 christos Exp $");
+__RCSID("$NetBSD: readline.c,v 1.107 2013/01/13 15:46:57 christos Exp $");
 #endif /* not lint && not SCCSID */
 
 #include <sys/types.h>
@@ -2104,9 +2104,9 @@
 rl_get_screen_size(int *rows, int *cols)
 {
        if (rows)
-               el_get(e, EL_GETTC, "li", rows, NULL);
+               el_get(e, EL_GETTC, "li", rows, (void *)0);
        if (cols)
-               el_get(e, EL_GETTC, "co", cols, NULL);
+               el_get(e, EL_GETTC, "co", cols, (void *)0);
 }
 
 void



Home | Main Index | Thread Index | Old Index