mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Make config_lines_eq() take const arguments.
This commit is contained in:
parent
daed2e39ad
commit
3e34840a77
@ -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))
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user