Import of pkgsrc-2014Q1
This commit is contained in:
24
pkgtools/pkg_select/patches/patch-pkgsrc.c
Normal file
24
pkgtools/pkg_select/patches/patch-pkgsrc.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user