diff options
author | Viktor Szakats <vszakats@users.noreply.github.com> | 2016-01-27 11:04:18 +0100 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2016-01-28 02:45:36 -0500 |
commit | 1597af51b159a09325f0a13ba007d687708991ca (patch) | |
tree | 73d9a1fc36158c2d44c397298721281ee92fe6db /src | |
parent | e400a89b184d31da3ac0c5a47dce795e222c33eb (diff) |
tool_doswin: silence unused function warning
tool_doswin.c:185:14: warning: 'msdosify' defined but not used
[-Wunused-function]
Closes https://github.com/bagder/curl/pull/616
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_doswin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tool_doswin.c b/src/tool_doswin.c index 9c6a7a39f..73dc9d0bb 100644 --- a/src/tool_doswin.c +++ b/src/tool_doswin.c @@ -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); @@ -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]; @@ -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. |