diff options
author | Dan McGee <dan@archlinux.org> | 2009-10-11 21:19:55 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-10-11 21:42:04 +0200 |
commit | 302310c5aad5ae25a1e712ca6f9de6bef73e17de (patch) | |
tree | 1bd317650960fbdc77fc5e76c12c11049cd6531a /src/pacman/pacman.c | |
parent | 4828d9ef7c7dc04eb4ad909f9204e909fbaae48f (diff) | |
download | pacman-302310c5aad5ae25a1e712ca6f9de6bef73e17de.tar.gz pacman-302310c5aad5ae25a1e712ca6f9de6bef73e17de.tar.xz |
Minor scope/typing cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r-- | src/pacman/pacman.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index ac515029..5e824f4d 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -612,7 +612,7 @@ static char *get_filename(const char *url) { static char *get_destfile(const char *path, const char *filename) { char *destfile; /* len = localpath len + filename len + null */ - int len = strlen(path) + strlen(filename) + 1; + size_t len = strlen(path) + strlen(filename) + 1; destfile = calloc(len, sizeof(char)); snprintf(destfile, len, "%s%s", path, filename); @@ -622,7 +622,7 @@ static char *get_destfile(const char *path, const char *filename) { static char *get_tempfile(const char *path, const char *filename) { char *tempfile; /* len = localpath len + filename len + '.part' len + null */ - int len = strlen(path) + strlen(filename) + 6; + size_t len = strlen(path) + strlen(filename) + 6; tempfile = calloc(len, sizeof(char)); snprintf(tempfile, len, "%s%s.part", path, filename); |