diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2019-05-15 19:36:21 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2019-05-15 19:36:21 +0000 |
commit | f9e34ec235f351165e9f641949d3c541041c4113 (patch) | |
tree | 193379a6f4ef9edee0a31f931208d536961c09de /usr.bin/less | |
parent | 459b734f6752f84df2ff2f640eae6ddcbc4280cf (diff) |
trivial patch to at least make the buggy functions control_char()
and get_wchar() static for now - until they can be deleted
Diffstat (limited to 'usr.bin/less')
-rw-r--r-- | usr.bin/less/charset.c | 4 | ||||
-rw-r--r-- | usr.bin/less/funcs.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/less/charset.c b/usr.bin/less/charset.c index ec1365414ed..4be75d678a9 100644 --- a/usr.bin/less/charset.c +++ b/usr.bin/less/charset.c @@ -148,7 +148,7 @@ init_charset(void) /* * Is a given character a "control" character? */ -int +static int control_char(LWCHAR c) { c &= 0377; @@ -281,7 +281,7 @@ is_utf8_well_formed(const char *s) /* * Get the value of a UTF-8 character. */ -LWCHAR +static LWCHAR get_wchar(const char *p) { switch (utf_len(p[0])) { diff --git a/usr.bin/less/funcs.h b/usr.bin/less/funcs.h index 87439f06e2e..2bfab74475e 100644 --- a/usr.bin/less/funcs.h +++ b/usr.bin/less/funcs.h @@ -56,12 +56,10 @@ void ch_init(int, int); void ch_close(void); int ch_getflags(void); void init_charset(void); -int control_char(LWCHAR); char *prchar(LWCHAR); char *prutfchar(LWCHAR); int utf_len(char); int is_utf8_well_formed(const char *); -LWCHAR get_wchar(const char *); LWCHAR step_char(char **, int, char *); int is_composing_char(LWCHAR); int is_ubin_char(LWCHAR); |