# HG changeset patch # User J. Ali Harlow # Date 1468252193 -3600 # Node ID 9d0a04089d229f86768b561ecc7d8495c1d97941 # Parent 7c6d932f291fce5f444d6ebe3f68894a73d090cd Fix compiler warnings diff -r 7c6d932f291f -r 9d0a04089d22 librazor/uri-io.c --- a/librazor/uri-io.c Mon Jul 11 13:54:54 2016 +0100 +++ b/librazor/uri-io.c Mon Jul 11 16:49:53 2016 +0100 @@ -164,7 +164,6 @@ int is_dir; char *path, *slash, *s; void *addr; - struct razor_error *tmp_error = NULL; path = strdup(filename); slash = strrchr(path, '/'); @@ -226,7 +225,7 @@ addr = razor_file_get_contents_archive(filename, &size, error); if (!addr) { if (error && saved_errno != ENOTDIR && - razor_error_matches(error, RAZOR_POSIX_ERROR, + razor_error_matches(*error, RAZOR_POSIX_ERROR, ENOTDIR)) { razor_error_free(*error); *error = NULL; diff -r 7c6d932f291f -r 9d0a04089d22 src/main.c --- a/src/main.c Mon Jul 11 13:54:54 2016 +0100 +++ b/src/main.c Mon Jul 11 16:49:53 2016 +0100 @@ -682,7 +682,7 @@ } #endif -void init_uri_handler(void) +static void init_uri_handler(void) { #ifdef HAVE_CURL struct razor_uri_vtable uri_vtable={0,}; @@ -741,7 +741,6 @@ int retval; struct razor_set *set; struct razor_atomic *atomic; - char buffer[512]; switch (razor_getopt(argc, argv, 0, NULL, "", NULL)) { case -2: @@ -1088,7 +1087,7 @@ const char *preunprog, *preun, *postunprog, *postun; const char *install_prefix; const char *const *prefixes; - char *file, *s, *uri, *filename; + char *s, *uri, *filename; uint32_t flags; importer = razor_importer_create();