explicitly pass (void *)0 instead of NULL.
This commit is contained in:
parent
fab9d8686e
commit
e861b2b079
|
@ -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 @@ void
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue