summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-05-07 16:38:58 +0100
committerVincent Sanders <vince@kyllikki.org>2014-05-07 16:38:58 +0100
commit6349704b5e7c48caa8cae4cfa612ce12b6446aae (patch)
tree4e28d8078b42143d6ad760ca4883c8fce7cbfb67 /amiga
parentc56642819eed87431dff3446fe111f7f3eefaa7d (diff)
downloadnetsurf-6349704b5e7c48caa8cae4cfa612ce12b6446aae.tar.gz
netsurf-6349704b5e7c48caa8cae4cfa612ce12b6446aae.tar.bz2
fix silly errors in atari and amiga file operation table change
Diffstat (limited to 'amiga')
-rw-r--r--amiga/gui.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 9fce7b0e0..8e56c483e 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -238,7 +238,7 @@ static void gui_window_place_caret(struct gui_window *g, int x, int y, int heigh
* @return NSERROR_OK and the complete path is written to str
* or error code on faliure.
*/
-static nserror amiga_mkpath(char **str, size_t *size, size_t nelm, va_list ap)
+static nserror amiga_vmkpath(char **str, size_t *size, size_t nelm, va_list ap)
{
const char *elm[16];
size_t elm_len[16];
@@ -300,6 +300,18 @@ static nserror amiga_mkpath(char **str, size_t *size, size_t nelm, va_list ap)
return NSERROR_OK;
}
+static nserror amiga_mkpath(char **str, size_t *size, size_t nelm, ...)
+{
+ va_list ap;
+ nserror ret;
+
+ va_start(ap, nelm);
+ ret = amiga_vmkpath(str, size, nelm, ap);
+ va_end(ap);
+
+ return ret;
+}
+
/**
* Get the basename of a file using posix path handling.
*
@@ -5195,7 +5207,7 @@ static struct gui_window_table amiga_window_table = {
/* amiga file handling operations */
static struct gui_file_table amiga_file_table = {
- .mkpath = amiga_mkpath,
+ .mkpath = amiga_vmkpath,
.basename = amiga_basename,
};