From a65ee007bbd7a0bda0709251c9a063d794b51a14 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Wed, 1 May 2013 07:25:29 -0700 Subject: 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. --- pkg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg.c') diff --git a/pkg.c b/pkg.c index e78c12d..f9ab34a 100644 --- a/pkg.c +++ b/pkg.c @@ -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; -- cgit v1.2.1