From ee7b2e93082d436008204b2e670bb944531cf714 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Mon, 20 May 2013 17:18:46 +0200 Subject: Add an explicit cast to int in lookup_shadow --- tests/lookup_shadow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-54-g00ecf