diff options
author | Aaron Griffin <aaron@archlinux.org> | 2007-01-26 02:13:16 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-01-26 02:13:16 +0000 |
commit | e22336673aca979e1e893b25b58e6d726fc739cf (patch) | |
tree | 33d6261dcb1801bfbdf7aafdc13fa6a5ee14da6b /lib/libalpm/alpm.c | |
parent | 7ffb1e5facd4121602e6fdd2eafd3c7f37ded446 (diff) | |
download | pacman-e22336673aca979e1e893b25b58e6d726fc739cf.tar.xz |
Dan McGee <dpmcgee@gmail.com>
* Lots of code cleanup, and type fixes
* Make 'makeworld' a bit more in-line with the other stuff
* Make -Si and -Qi operations appear the same
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r-- | lib/libalpm/alpm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 6bfaaada..3c06971e 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -566,7 +566,7 @@ char *alpm_pkg_name_hasarch(char *pkgname) * and * package-name-bar-1.2.3-1 */ - int i = 0; + size_t i = 0; char *arch, *cmp, *p; if((p = strrchr(pkgname, '-'))) { @@ -1008,7 +1008,7 @@ int alpm_parse_config(char *file, alpm_cb_db_register callback, const char *this _alpm_log(PM_LOG_DEBUG, _("config: xfercommand: %s"), ptr); } else if (!strcmp(key, "UPGRADEDELAY")) { /* The config value is in days, we use seconds */ - long ud = atol(ptr) * 60 * 60 *24; + time_t ud = atol(ptr) * 60 * 60 *24; alpm_option_set_upgradedelay(ud); _alpm_log(PM_LOG_DEBUG, _("config: upgradedelay: %d"), ud); } else { |