summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-10-13 16:25:21 -0500
committerDan McGee <dan@archlinux.org>2011-10-13 16:25:21 -0500
commit53e525c4f3a6b0bfdc346b4563c6c8fc0e1b5b11 (patch)
tree19a338424c13f17723486a690c5b97babca92fd4 /src
parentff8704635440fe890ac8621722cc8301a3875e48 (diff)
Fix some strict 32-bit gcc warnings
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index f62d4449..7235d394 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -347,7 +347,8 @@ void cb_question(alpm_question_t event, void *data1, void *data2,
{
alpm_pgpkey_t *key = data1;
char created[12];
- strftime(created, 12, "%Y-%m-%d", localtime(&(key->created)));
+ time_t time = (time_t)key->created;
+ strftime(created, 12, "%Y-%m-%d", localtime(&time));
*response = yesno(_(":: Import PGP key %s, \"%s\", created %s?"),
key->fingerprint, key->uid, created);
}