Annotation of pkgsrc/pkgtools/pkg_select/patches/patch-pkgsrc.c, revision 1.2
1.2 ! plunky 1: $NetBSD: patch-pkgsrc.c,v 1.1 2013/11/29 23:13:56 dholland Exp $
1.1 dholland 2:
3: Fix const correctness.
4:
1.2 ! plunky 5: --- pkgsrc.c.orig 2009-03-08 14:25:53.000000000 +0000
1.1 dholland 6: +++ pkgsrc.c
7: @@ -80,7 +80,7 @@ list_mirrors(const char *method)
8:
9: if ((list = build_mirror_list(method)) == NULL)
10: return(NULL);
11: - if ((etree = build_tree_from_list((const char **)list)) == NULL) {
12: + if ((etree = build_tree_from_list((const char *const *)list)) == NULL) {
13: free_list(&list);
14: return(NULL);
15: }
16: @@ -247,7 +247,7 @@ get_cvs_branch(const char *anoncvs, int
17: free_list(&list);
18:
19: if ((etree =
20: - build_tree_from_list((const char **)branchlist)) == NULL) {
21: + build_tree_from_list((const char *const *)branchlist)) == NULL) {
22: free_list(&branchlist);
23: return(NULL);
24: }
CVSweb <webmaster@jp.NetBSD.org>