summaryrefslogtreecommitdiff
path: root/charset.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2019-06-29 04:39:01 +0000
committerXin LI <delphij@FreeBSD.org>2019-06-29 04:39:01 +0000
commit6aa86b45318b321ba7e9cc3c221ab9062ddac4a0 (patch)
treeed38a1d35ad0e927ec1b5282deedc86014f9181d /charset.c
parentb04073e3aef4b6c7e7d2755a7bbc098e5f2a03f8 (diff)
Diffstat (limited to 'charset.c')
-rw-r--r--charset.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/charset.c b/charset.c
index 88978918e45f3..5441952a0db52 100644
--- a/charset.c
+++ b/charset.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2017 Mark Nudelman
+ * Copyright (C) 1984-2019 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -245,7 +245,7 @@ icharset(name, no_error)
* Define a charset, given a locale name.
*/
static void
-ilocale()
+ilocale(VOID_PARAM)
{
int c;
@@ -315,7 +315,7 @@ setfmt(s, fmtvarptr, attrptr, default_fmt)
*
*/
static void
-set_charset()
+set_charset(VOID_PARAM)
{
char *s;
@@ -338,7 +338,7 @@ set_charset()
* LESSCHARSET is not defined: try LESSCHARDEF.
*/
s = lgetenv("LESSCHARDEF");
- if (s != NULL && *s != '\0')
+ if (!isnullenv(s))
{
ichardef(s);
return;
@@ -395,7 +395,7 @@ set_charset()
* Initialize charset data structures.
*/
public void
-init_charset()
+init_charset(VOID_PARAM)
{
char *s;