summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-05-20 17:18:46 +0200
committerArthur de Jong <arthur@arthurdejong.org>2013-05-20 18:51:59 +0200
commitee7b2e93082d436008204b2e670bb944531cf714 (patch)
treed35791cc03f524d3382b7bc4a3c96a9ecd1402a0
parentb6f50476524e9effb624c1c7c76a98615169241e (diff)
Add an explicit cast to int in lookup_shadow
-rw-r--r--tests/lookup_shadow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lookup_shadow.c b/tests/lookup_shadow.c
index 5c96108..3655806 100644
--- a/tests/lookup_shadow.c
+++ b/tests/lookup_shadow.c
@@ -41,7 +41,7 @@ static void print_shadow(struct spwd *result)
{
printf("%s:%s:", result->sp_namp, result->sp_pwdp);
if (result->sp_lstchg >= 0)
- printf("%d", result->sp_lstchg);
+ printf("%d", (int)result->sp_lstchg);
printf(":");
if (result->sp_min >= 0)
printf("%d", (int)result->sp_min);