Skip to content

Commit

Permalink
tool_doswin: silence unused function warning
Browse files Browse the repository at this point in the history
tool_doswin.c:185:14: warning: 'msdosify' defined but not used
[-Wunused-function]

Closes #616
  • Loading branch information
vszakats authored and jay committed Jan 28, 2016
1 parent e400a89 commit 1597af5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tool_doswin.c
Expand Up @@ -85,7 +85,9 @@ __pragma(warning(pop))
# 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);


Expand Down Expand Up @@ -182,6 +184,7 @@ Returns a copy of file_name that is sanitized by MSDOS standards.
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];
Expand Down Expand Up @@ -267,6 +270,7 @@ static char *msdosify(const char *file_name)
*d = '\0';
return strdup(dos_name);
}
#endif

/*
Rename file_name if it's a representation of a device name.
Expand Down

0 comments on commit 1597af5

Please sign in to comment.