]> granicus.if.org Git - sudo/commitdiff
Cast version to int when printing. Avoids a cppcheck warning.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Sat, 10 Feb 2018 11:00:17 +0000 (04:00 -0700)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Sat, 10 Feb 2018 11:00:17 +0000 (04:00 -0700)
plugins/sudoers/tsdump.c

index 8229fa42c6661ef760c6d7dff16e1af9231ca8d9..54c9d35d7d8ba47c8b5c645c73256c31b8037c57 100644 (file)
@@ -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;
     }