summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 70d5f8e1..2f3e9670 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -483,7 +483,7 @@ int db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq)
fputs("%SIZE%\n", fp);
fprintf(fp, "%ld\n\n", info->size);
fputs("%REASON%\n", fp);
- fprintf(fp, "%ld\n\n", info->reason);
+ fprintf(fp, "%d\n\n", info->reason);
fclose(fp);
}