summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-05-11 16:54:36 +0100
committerVincent Sanders <vince@kyllikki.org>2014-05-11 16:54:36 +0100
commit06a3f84e5032b93052f1eb95946d5f51aa9368f2 (patch)
tree034cba2ace73db7f31588aebe8fa0fd75bb16a4f /amiga/gui.c
parent318edea47e1ffa29cac9a10dd5de2eeea140eed3 (diff)
downloadnetsurf-06a3f84e5032b93052f1eb95946d5f51aa9368f2.tar.gz
netsurf-06a3f84e5032b93052f1eb95946d5f51aa9368f2.tar.bz2
remove amiga specific mkpath wrapper as registration has been fixed and the generic netsurf)mkpath is available
Diffstat (limited to 'amiga/gui.c')
-rw-r--r--amiga/gui.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 7ea2334a1..ddca092b2 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -298,18 +298,6 @@ static nserror amiga_vmkpath(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.
*
@@ -399,7 +387,7 @@ bool ami_gui_map_filename(char **remapped, const char *path, const char *file, c
char *realfname;
bool found = false;
- amiga_mkpath(&mapfile, &mapfile_size, 2, path, map);
+ netsurf_mkpath(&mapfile, &mapfile_size, 2, path, map);
if(mapfile == NULL) return false;
@@ -442,7 +430,7 @@ bool ami_gui_check_resource(char *fullpath, const char *file)
size_t fullpath_len = 1024;
ami_gui_map_filename(&remapped, fullpath, file, "Resource.map");
- amiga_mkpath(&fullpath, &fullpath_len, 2, fullpath, remapped);
+ netsurf_mkpath(&fullpath, &fullpath_len, 2, fullpath, remapped);
LOG(("Checking for %s", fullpath));
@@ -493,7 +481,7 @@ bool ami_locate_resource(char *fullpath, const char *file)
{
ami_gui_map_filename(&remapped, "PROGDIR:Resources",
locale->loc_PrefLanguages[i], "LangNames");
- amiga_mkpath(&fullpath, &fullpath_len, 2, fullpath, remapped);
+ netsurf_mkpath(&fullpath, &fullpath_len, 2, fullpath, remapped);
found = ami_gui_check_resource(fullpath, file);
}