X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/3f36eb5f9c4635756a38c9327c769599d7b58c1f..03847a23f64d1b19254335646bf09220f66ac8f9:/conffile.c diff --git a/conffile.c b/conffile.c index ede9c49..24d7e25 100644 --- a/conffile.c +++ b/conffile.c @@ -561,10 +561,10 @@ list_t *list_new(void) return NULL; } -int32_t list_length(list_t *a) +int32_t list_length(const list_t *a) { int32_t l=0; - list_t *i; + const list_t *i; for (i=a; i; i=i->next) { assert(l < INT_MAX); l++; } return l; }