diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-07-03 10:27:38 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-07-03 10:27:38 -0400 |
commit | 3e34840a77c45da3575b8a929ed8bbd7370aad63 (patch) | |
tree | a5c8037acd10ba332a6b9b2eb68c550986e97c18 | |
parent | daed2e39ada7efcd8d61a306f8a5f4e22316350f (diff) | |
download | tor-3e34840a77c45da3575b8a929ed8bbd7370aad63.tar.gz tor-3e34840a77c45da3575b8a929ed8bbd7370aad63.zip |
Make config_lines_eq() take const arguments.
-rw-r--r-- | src/lib/encoding/confline.c | 2 | ||||
-rw-r--r-- | src/lib/encoding/confline.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/encoding/confline.c b/src/lib/encoding/confline.c index fdb575e03f..0d8384db13 100644 --- a/src/lib/encoding/confline.c +++ b/src/lib/encoding/confline.c @@ -256,7 +256,7 @@ config_lines_dup_and_filter(const config_line_t *inp, /** Return true iff a and b contain identical keys and values in identical * order. */ int -config_lines_eq(config_line_t *a, config_line_t *b) +config_lines_eq(const config_line_t *a, const config_line_t *b) { while (a && b) { if (strcasecmp(a->key, b->key) || strcmp(a->value, b->value)) diff --git a/src/lib/encoding/confline.h b/src/lib/encoding/confline.h index 56ea36bf61..12c554c6e7 100644 --- a/src/lib/encoding/confline.h +++ b/src/lib/encoding/confline.h @@ -50,7 +50,7 @@ const config_line_t *config_line_find(const config_line_t *lines, const char *key); const config_line_t *config_line_find_case(const config_line_t *lines, const char *key); -int config_lines_eq(config_line_t *a, config_line_t *b); +int config_lines_eq(const config_line_t *a, const config_line_t *b); int config_count_key(const config_line_t *a, const char *key); void config_free_lines_(config_line_t *front); #define config_free_lines(front) \ |