Clean up pkg_vec_insert.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Tue, 3 Nov 2009 05:56:39 +0000 (05:56 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Tue, 3 Nov 2009 05:56:39 +0000 (05:56 +0000)
commit74904d0ba19fca7f543fc2f2cde58ae9e371f9fd
treee9832d15468fe4ef082bc29924a6a5fc4b20a694
parent1918031b966a3bfbad57d02b6daa365e3b619883
Clean up pkg_vec_insert.

- Check for realloc failure.
- Don't cast an lvalue.
- Remove unused counter.

git-svn-id: http://opkg.googlecode.com/svn/trunk@247 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
libopkg/pkg_vec.c