tool_doswin.c:185:14: warning: 'msdosify' defined but not used
[-Wunused-function]
Closes https://github.com/bagder/curl/pull/616
# include <fcntl.h> /* _use_lfn(f) prototype */
#endif
+#ifdef MSDOS
static char *msdosify(const char *file_name);
+#endif
static char *rename_if_dos_device_name(const char *file_name);
Warning: path information may pass through. For sanitizing a filename use
sanitize_file_name which calls this function after sanitizing path info.
*/
+#ifdef MSDOS
static char *msdosify(const char *file_name)
{
char dos_name[PATH_MAX];
*d = '\0';
return strdup(dos_name);
}
+#endif
/*
Rename file_name if it's a representation of a device name.