]> git.proxmox.com Git - libgit2.git/commitdiff
Fix warnings in vector.c
authorVicent Marti <tanoku@gmail.com>
Sun, 27 Feb 2011 20:07:39 +0000 (22:07 +0200)
committerVicent Marti <tanoku@gmail.com>
Thu, 3 Mar 2011 18:23:49 +0000 (20:23 +0200)
Signed-off-by: Vicent Marti <tanoku@gmail.com>
src/vector.c

index e1949774878706c97272a02dd1b1efd0ded7ab9b..f298804e2570b22d827d11e6f58e153905d9dd6a 100644 (file)
 #include "vector.h"
 
 static const double resize_factor = 1.75;
-static const int minimum_size = 8;
+static const size_t minimum_size = 8;
 
 static int resize_vector(git_vector *v)
 {
-       void **new_contents;
-
        v->_alloc_size = ((unsigned int)(v->_alloc_size * resize_factor)) + 1;
        if (v->_alloc_size < minimum_size)
                v->_alloc_size = minimum_size;