From: Matthew Fernandez Date: Sun, 14 Aug 2022 21:25:30 +0000 (-0700) Subject: sfio: make '_sftype' static X-Git-Tag: 5.0.1~1^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bf3ba35b87e72f69e3bda4187e7c0551d6d438b;p=graphviz sfio: make '_sftype' static This function is not used outside of its containing file. --- diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index 0700a4f31..79a955271 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -545,7 +545,6 @@ extern "C" { extern int _sfpopen(Sfio_t *, int, int, int); extern int _sfpclose(Sfio_t *); extern int _sfmode(Sfio_t *, int, int); - extern int _sftype(const char *, int *, int *); extern int _sfexcept(Sfio_t *, int, ssize_t, Sfdisc_t *); extern Sfrsrv_t *_sfrsrv(Sfio_t *, ssize_t); extern int _sfsetpool(Sfio_t *); diff --git a/lib/sfio/sfopen.c b/lib/sfio/sfopen.c index cda11e2ec..a8216148f 100644 --- a/lib/sfio/sfopen.c +++ b/lib/sfio/sfopen.c @@ -19,6 +19,8 @@ ** Written by Kiem-Phong Vo. */ +static int _sftype(const char *mode, int *oflagsp, int *uflagp); + /** * @param file file/string to be opened * @param mode mode of the stream @@ -83,8 +85,7 @@ Sfio_t *sfopen(const char *file, const char *mode) return f; } -int _sftype(const char *mode, int *oflagsp, int *uflagp) -{ +static int _sftype(const char *mode, int *oflagsp, int *uflagp) { int sflags, oflags, uflag; if (!mode)