diff options
author | Christos Zoulas <christos@zoulas.com> | 2022-05-28 20:24:09 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2022-05-28 20:24:09 +0000 |
commit | 249d6536339506e72bb2cc4a16946e131f70aefa (patch) | |
tree | eab867a31992cc5c6a767e115568d6917327cf03 | |
parent | a6de062b431e1fd1b69bd07d99d157bf73dff460 (diff) | |
download | file-git-249d6536339506e72bb2cc4a16946e131f70aefa.tar.gz |
make file_printable public for now
-rw-r--r-- | src/file.h | 4 | ||||
-rw-r--r-- | src/funcs.c | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -27,7 +27,7 @@ */ /* * file.h - definitions for file(1) program - * @(#)$File: file.h,v 1.233 2022/05/28 01:04:57 christos Exp $ + * @(#)$File: file.h,v 1.234 2022/05/28 20:24:09 christos Exp $ */ #ifndef __file_h__ @@ -575,7 +575,7 @@ protected size_t file_pstring_length_size(struct magic_set *, const struct magic *); protected size_t file_pstring_get_length(struct magic_set *, const struct magic *, const char *); -protected char * file_printable(struct magic_set *, char *, size_t, +public char * file_printable(struct magic_set *, char *, size_t, const char *, size_t); #ifdef __EMX__ protected int file_os2_apptype(struct magic_set *, const char *, const void *, diff --git a/src/funcs.c b/src/funcs.c index aab9c3bd..71041441 100644 --- a/src/funcs.c +++ b/src/funcs.c @@ -27,7 +27,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: funcs.c,v 1.128 2022/04/18 21:50:49 christos Exp $") +FILE_RCSID("@(#)$File: funcs.c,v 1.129 2022/05/28 20:24:09 christos Exp $") #endif /* lint */ #include "magic.h" @@ -763,7 +763,7 @@ file_pop_buffer(struct magic_set *ms, file_pushbuf_t *pb) /* * convert string to ascii printable format. */ -protected char * +public char * file_printable(struct magic_set *ms, char *buf, size_t bufsiz, const char *str, size_t slen) { |