Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix build with GCC

* Reported by: Jason Hellenthal
* Jenkins: http://jenkins.unix-heaven.org/jenkins/job/pkgng-gcc/91/
  • Loading branch information...
commit 0f91f5e766b99cc96702a14bd1094a2fd1314a85 1 parent 657802f
@dnaeon dnaeon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  libpkg/pkg.c
View
2  libpkg/pkg.c
@@ -558,7 +558,7 @@ pkg_adddep(struct pkg *pkg, const char *name, const char *origin, const char *ve
assert(origin != NULL && origin[0] != '\0');
assert(version != NULL && version[0] != '\0');
- HASH_FIND_STR(pkg->deps, origin, d);
+ HASH_FIND_STR(pkg->deps, __DECONST(char *, origin), d);
if (d != NULL) {
pkg_get(pkg, PKG_NAME, &n1, PKG_VERSION, &v1);
pkg_emit_error("%s-%s: duplicate dependency listing: %s-%s, ignoring",
Please sign in to comment.
Something went wrong with that request. Please try again.