Commit 63512802 authored by unknown's avatar unknown

Build fixes for NetWare

parent c9cc82f2
...@@ -373,22 +373,24 @@ static int comp_names(struct fileinfo *a, struct fileinfo *b) ...@@ -373,22 +373,24 @@ static int comp_names(struct fileinfo *a, struct fileinfo *b)
} }
static int static int find_file(const char *name, const char *root,
find_file(const char *name, const char *root, uint flags, char *result, size_t len, ...) uint flags, char *result, size_t len, ...)
{ {
int ret; int ret= 1;
va_list va; va_list va;
FILEINFO key= { (char*)name, NULL };
const char *subdir; const char *subdir;
char *cp; char *cp;
FILEINFO key;
/* Init key with name of the file to look for */
key.name= (char*)name;
DBUG_ASSERT(root != NULL); DBUG_ASSERT(root != NULL);
cp= strmake(result, root, len); cp= strmake(result, root, len);
if (cp[-1] != FN_LIBCHAR) if (cp[-1] != FN_LIBCHAR)
*cp++= FN_LIBCHAR; *cp++= FN_LIBCHAR;
ret= 1;
va_start(va, len); va_start(va, len);
subdir= (!(flags & MY_SEARCH_SELF)) ? va_arg(va, char *) : ""; subdir= (!(flags & MY_SEARCH_SELF)) ? va_arg(va, char *) : "";
while (subdir) while (subdir)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment