Make pprint_tag void and cleans up call in cmd_cat_file.
[gitweb.git] / local-fetch.c
index 4bf86fbbe2703514cd3ab39fd9c81accac662aaf..7d01845d392ab891c8cfe9db9a218e4c2d70e53e 100644 (file)
@@ -43,8 +43,8 @@ static int setup_indices(void)
                return -1;
        while ((de = readdir(dir)) != NULL) {
                int namelen = strlen(de->d_name);
-               if (namelen != 50 || 
-                   strcmp(de->d_name + namelen - 5, ".pack"))
+               if (namelen != 50 ||
+                   !has_extension(de->d_name, ".pack"))
                        continue;
                get_sha1_hex(de->d_name + 5, sha1);
                setup_index(sha1);