Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-pkgsrc.c,v 1.1 2013/11/29 23:13:56 dholland Exp $
Fix const correctness.
--- pkgsrc.c~ 2009-03-08 14:25:53.000000000 +0000
+++ pkgsrc.c
@@ -80,7 +80,7 @@ list_mirrors(const char *method)
if ((list = build_mirror_list(method)) == NULL)
return(NULL);
- if ((etree = build_tree_from_list((const char **)list)) == NULL) {
+ if ((etree = build_tree_from_list((const char *const *)list)) == NULL) {
free_list(&list);
return(NULL);
}
@@ -247,7 +247,7 @@ get_cvs_branch(const char *anoncvs, int
free_list(&list);
if ((etree =
- build_tree_from_list((const char **)branchlist)) == NULL) {
+ build_tree_from_list((const char *const *)branchlist)) == NULL) {
free_list(&branchlist);
return(NULL);
}