From: Todd C. Miller Date: Sat, 10 Feb 2018 11:00:17 +0000 (-0700) Subject: Cast version to int when printing. Avoids a cppcheck warning. X-Git-Tag: SUDO_1_8_23^2~140 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0d413d07765bb0a4efc3b452f83904904f7248c;p=sudo Cast version to int when printing. Avoids a cppcheck warning. --- diff --git a/plugins/sudoers/tsdump.c b/plugins/sudoers/tsdump.c index 8229fa42c..54c9d35d7 100644 --- a/plugins/sudoers/tsdump.c +++ b/plugins/sudoers/tsdump.c @@ -179,7 +179,7 @@ valid_entry(union timestamp_entry_storage *u, off_t pos) break; default: printf("unknown time stamp entry version %d @ %lld\n", - entry->version, (long long)pos); + (int)entry->version, (long long)pos); debug_return_bool(false); break; }