Fix a few warnings.
authorKristian H?gsberg <krh@redhat.com>
Thu Jan 10 21:08:03 2008 -0500 (2008-01-10)
changeset 940aa93cfbcb3f
parent 93 f173765f7623
child 95 c47cbb91394c
Fix a few warnings.
main.c
razor.c
test-driver.c
     1.1 --- a/main.c	Tue Jan 08 12:55:34 2008 -0500
     1.2 +++ b/main.c	Thu Jan 10 21:08:03 2008 -0500
     1.3 @@ -7,6 +7,7 @@
     1.4  #include <unistd.h>
     1.5  #include <dirent.h>
     1.6  #include <curl/curl.h>
     1.7 +#include <fnmatch.h>
     1.8  #include "razor.h"
     1.9  
    1.10  static const char *repo_filename = "system.repo";
     2.1 --- a/razor.c	Tue Jan 08 12:55:34 2008 -0500
     2.2 +++ b/razor.c	Thu Jan 10 21:08:03 2008 -0500
     2.3 @@ -1069,7 +1069,6 @@
     2.4  			     enum razor_property_type *type)
     2.5  {
     2.6  	char *pool;
     2.7 -	unsigned long flags, index;
     2.8  	int valid;
     2.9  	struct razor_property *p, *properties;
    2.10  
     3.1 --- a/test-driver.c	Tue Jan 08 12:55:34 2008 -0500
     3.2 +++ b/test-driver.c	Thu Jan 10 21:08:03 2008 -0500
     3.3 @@ -188,7 +188,7 @@
     3.4  {
     3.5  	struct razor_package *package;
     3.6  	struct razor_property *property;
     3.7 -	const char *name, *version, *ref_name, *ref_version;
     3.8 +	const char *name, *version;
     3.9  	enum razor_property_type type;
    3.10  
    3.11  	if (ctx->package_iterator != NULL) {
    3.12 @@ -287,7 +287,6 @@
    3.13  start_test_element(void *data, const char *element, const char **atts)
    3.14  {
    3.15  	struct test_context *ctx = data;
    3.16 -	struct razor_set *set;
    3.17  	const char *name;
    3.18  
    3.19  	if (strcmp(element, "import") == 0) {
    3.20 @@ -322,7 +321,6 @@
    3.21  int main(int argc, char *argv[])
    3.22  {
    3.23  	struct test_context ctx;
    3.24 -	struct test_set *set;
    3.25  
    3.26  	if (argc != 2) {
    3.27  		fprintf(stderr, "usage: %s TESTS-FILE\n", argv[0]);