summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2016-07-08 13:04:10 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-07-12 11:57:57 +0200
commitcca5695e6cab64def52c009afc8f055a85f1fde4 (patch)
treedbc33f64ed33ddb94030346de6dd92e93811c067
parentc420ce830ac0b0b288a2a887ec2cfce5c748018c (diff)
downloadsssd-cca5695e6cab64def52c009afc8f055a85f1fde4.tar.gz
sssd-cca5695e6cab64def52c009afc8f055a85f1fde4.tar.xz
sssd-cca5695e6cab64def52c009afc8f055a85f1fde4.zip
sssctl: Fix format string for size_t
src/tools/sssctl/sssctl_config.c: In function 'sssctl_config_check': src/tools/sssctl/sssctl_config.c:93:14: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'size_t {aka unsigned int}' [-Wformat=] printf(_("Issues identified by validators: %lu\n"), num_errors); ^ src/tools/sssctl/sssctl_config.c:93:12: note: in expansion of macro '_' printf(_("Issues identified by validators: %lu\n"), num_errors); ^ Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r--src/tools/sssctl/sssctl_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/sssctl/sssctl_config.c b/src/tools/sssctl/sssctl_config.c
index 4f6dbcdd7..a66d7749c 100644
--- a/src/tools/sssctl/sssctl_config.c
+++ b/src/tools/sssctl/sssctl_config.c
@@ -91,7 +91,7 @@ errno_t sssctl_config_check(struct sss_cmdline *cmdline,
}
/* Output from validators */
- printf(_("Issues identified by validators: %lu\n"), num_errors);
+ printf(_("Issues identified by validators: %zu\n"), num_errors);
for (i = 0; i < num_errors; i++) {
printf("%s\n", strs[i]);
}