Avoid const warning on Win32

scan_dir() alters the directory name in place on Win32 to convert \ to
/, so it can't be treated as const.
This commit is contained in:
Dan Nicholson 2013-05-01 07:25:29 -07:00
parent 0efb668bd5
commit a65ee007bb

2
pkg.c
View file

@ -127,7 +127,7 @@ name_ends_in_uninstalled (const char *str)
* locations, ignoring duplicates
*/
static void
scan_dir (const char *dirname)
scan_dir (char *dirname)
{
DIR *dir;
struct dirent *dent;