summaryrefslogtreecommitdiff
path: root/pkg.c
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2013-05-01 07:25:29 -0700
committerDan Nicholson <dbn.lists@gmail.com>2013-05-20 05:56:50 -0700
commita65ee007bbd7a0bda0709251c9a063d794b51a14 (patch)
tree0e07f957df1ff3d5ce947b478599a3f8f36425bb /pkg.c
parent0efb668bd5990f52a6a93b2cde037185edbe11b0 (diff)
downloadpkg-config-a65ee007bbd7a0bda0709251c9a063d794b51a14.tar.gz
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.
Diffstat (limited to 'pkg.c')
-rw-r--r--pkg.c2
1 files changed, 1 insertions, 1 deletions
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;