diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/options.c | 6 | ||||
-rw-r--r-- | desktop/options.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/desktop/options.c b/desktop/options.c index a9f67637a..2f4d3775e 100644 --- a/desktop/options.c +++ b/desktop/options.c @@ -468,7 +468,8 @@ void options_write(const char *path) /* exported interface documented in options.h */ -int snoptionf(char *string, size_t size, unsigned int option, const char *fmt) +int options_snoptionf(char *string, size_t size, unsigned int option, + const char *fmt) { size_t slen = 0; /* current output string length */ int fmtc = 0; /* current index into format string */ @@ -597,7 +598,8 @@ void options_dump(FILE *outf) int res; do { - res = snoptionf(buffer, sizeof buffer, opt_loop, "%k:%v\n"); + res = options_snoptionf(buffer, sizeof buffer, opt_loop, + "%k:%v\n"); if (res > 0) { fprintf(outf, "%s", buffer); } diff --git a/desktop/options.h b/desktop/options.h index c75ba18a8..47a648d75 100644 --- a/desktop/options.h +++ b/desktop/options.h @@ -187,6 +187,8 @@ void options_dump(FILE *outf); * \param fmt The format string. * \return The number of bytes written to \a string or -1 on error */ -int snoptionf(char *string, size_t size, unsigned int option, const char *fmt); +int options_snoptionf(char *string, size_t size, unsigned int option, + const char *fmt); #endif + |