diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-01-02 01:00:22 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-01-02 12:48:59 +0100 |
commit | 4060c5c77f41f69b26597dcc6d9285cf546000cf (patch) | |
tree | d4628105487887d015cb0002fc62fad569df7e92 /lib/libalpm | |
parent | 0acd794226e50bae1c776aba863baee400279410 (diff) | |
download | pacman-4060c5c77f41f69b26597dcc6d9285cf546000cf.tar.gz pacman-4060c5c77f41f69b26597dcc6d9285cf546000cf.tar.xz |
be_package.c: fix style violation
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/be_package.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c index 2d42465f..06b24a8f 100644 --- a/lib/libalpm/be_package.c +++ b/lib/libalpm/be_package.c @@ -437,6 +437,7 @@ static int add_entry_to_files_list(alpm_pkg_t *pkg, size_t *files_size, static int build_filelist_from_mtree(alpm_handle_t *handle, alpm_pkg_t *pkg, struct archive *archive) { int ret = 0; + size_t i; size_t mtree_maxsize = 0; size_t mtree_cursize = 0; size_t files_size = 0; /* we clean up the existing array so this is fine */ @@ -448,7 +449,7 @@ static int build_filelist_from_mtree(alpm_handle_t *handle, alpm_pkg_t *pkg, str "found mtree for package %s, getting file list\n", pkg->filename); /* throw away any files we might have already found */ - for (size_t i = 0; i < pkg->files.count; i++) { + for(i = 0; i < pkg->files.count; i++) { free(pkg->files.files[i].name); } free(pkg->files.files); |