summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-02-20 22:38:43 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-02-20 22:38:43 +0000
commitf54fc080c2a96ffdb713a9c8b5d0ccb604197c07 (patch)
treec24d2d06960d27a967a0fd56fa263f20f692b9cc /desktop
parentc95460da05ff7f73d79772b1a86cbbf72dd3e131 (diff)
downloadnetsurf-f54fc080c2a96ffdb713a9c8b5d0ccb604197c07.tar.gz
netsurf-f54fc080c2a96ffdb713a9c8b5d0ccb604197c07.tar.bz2
Add module namespace to options_snoptionf()
svn path=/trunk/netsurf/; revision=11739
Diffstat (limited to 'desktop')
-rw-r--r--desktop/options.c6
-rw-r--r--desktop/options.h4
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
+