Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
constify more things (to avoid future errors)
Eitan committed 15 years ago
commit 401a0042b761d7992d41223d42037c9a2d135183
parent e7d1114
2 files changed +2 -2
modified libpkg/pkg.h
@@ -462,7 +462,7 @@ int pkg_delete(struct pkg *pkg, struct pkgdb *db, int force);
/**
 * @todo Document
 */
-
int pkg_version_cmp(const char *, const char *);
+
int pkg_version_cmp(const char * const , const char * const);

/**
 * A function used as a callback by functions which fetch files from the
modified libpkg/pkg_version.c
@@ -231,7 +231,7 @@ get_component(const char *position, version_component *component)
 * reimplemented by Oliver Eikemeier
 */
int
-
pkg_version_cmp(const char *pkg1, const char *pkg2)
+
pkg_version_cmp(const char * const pkg1, const char * const pkg2)
{
	const char *v1, *v2, *ve1, *ve2;
	unsigned long e1, e2, r1, r2;