From: Matthew Fernandez Date: Tue, 29 Jun 2021 03:29:05 +0000 (-0700) Subject: mark array parameters to get_local_12_norm as const X-Git-Tag: 2.48.0~16^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad10316f0723b1f244c9aaeca121a92ce673f1fa;p=graphviz mark array parameters to get_local_12_norm as const This makes it clearer that this function does not modify these arrays. --- diff --git a/cmd/gvmap/country_graph_coloring.c b/cmd/gvmap/country_graph_coloring.c index 7168c9913..38a49fb59 100644 --- a/cmd/gvmap/country_graph_coloring.c +++ b/cmd/gvmap/country_graph_coloring.c @@ -17,7 +17,8 @@ #include #include -static void get_local_12_norm(int n, int i, int *ia, int *ja, int *p, real *norm){ +static void get_local_12_norm(int n, int i, const int *ia, const int *ja, + const int *p, real *norm){ int j, nz = 0; norm[0] = n; norm[1] = 0; for (j = ia[i]; j < ia[i+1]; j++){