Fix warnings during compilation
authorTomas Mlcoch <tmlcoch@redhat.com>
Mon, 3 Sep 2012 13:47:15 +0000 (15:47 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Mon, 3 Sep 2012 13:47:15 +0000 (15:47 +0200)
src/locate_metadata.c
src/parsehdr.c

index ffe24c8..8e61ecf 100644 (file)
@@ -661,7 +661,7 @@ cr_remove_metadata_classic(const char *repopath, int retain)
 
     while ((file = g_dir_read_name (repodir))) {
         // Get filename without suffix
-        gchar *name_without_suffix, *dot = NULL, *i = file;
+        gchar *name_without_suffix, *dot = NULL, *i = (gchar *) file;
         for (; *i != '\0'; i++) if (*i == '.') dot = i;
         if (!dot) continue;  // Filename doesn't contain '.'
         name_without_suffix = g_strndup(file, (dot - file));
index b2caacb..208f9c8 100644 (file)
@@ -50,7 +50,7 @@ compare_dependency(const char *dep1, const char *dep2)
      * Return values: 0 - same; 1 - first is bigger; 2 - second is bigger,
      * -1 - error
      */
-    int ret1, ret2;
+    int ret1;
     char *ver1, *ver2, *ver1_e, *ver2_e;
 
     if (dep1 == dep2) return 0;