q = p;
while ((header = strtok_r(q, PATH_DELIM, &saveptr))) {
ignore_headers = x_realloc(ignore_headers,
- (ignore_headers_len+1) * sizeof(char*));
+ (ignore_headers_len+1) * sizeof(char *));
ignore_headers[ignore_headers_len++] = x_strdup(header);
q = NULL;
}
/*
- * Copyright (C) 2011-2014 Joel Rosdahl
+ * Copyright (C) 2011-2015 Joel Rosdahl
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
reformat(&s, "hash_dir = %s", bool_to_string(conf->hash_dir));
printer(s, conf->item_origins[find_conf("hash_dir")->number], context);
- reformat(&s, "ignore_headers_in_manifest = %s", conf->ignore_headers_in_manifest);
- printer(s, conf->item_origins[find_conf("ignore_headers_in_manifest")->number],
+ reformat(&s, "ignore_headers_in_manifest = %s",
+ conf->ignore_headers_in_manifest);
+ printer(s,
+ conf->item_origins[find_conf("ignore_headers_in_manifest")->number],
context);
reformat(&s, "log_file = %s", conf->log_file);
CHECK_STR_EQ("extra_files_to_hash = efth", received_conf_items[n++].descr);
CHECK_STR_EQ("hard_link = true", received_conf_items[n++].descr);
CHECK_STR_EQ("hash_dir = true", received_conf_items[n++].descr);
- CHECK_STR_EQ("ignore_headers_in_manifest = ihim", received_conf_items[n++].descr);
+ CHECK_STR_EQ("ignore_headers_in_manifest = ihim",
+ received_conf_items[n++].descr);
CHECK_STR_EQ("log_file = lf", received_conf_items[n++].descr);
CHECK_STR_EQ("max_files = 4711", received_conf_items[n++].descr);
CHECK_STR_EQ("max_size = 98.7M", received_conf_items[n++].descr);