summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_select/patches/patch-pkgsrc.c
blob: 79b51c40c7ed2b6eab009897fb0a33fce311cf27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
 	}