[Git][NTPsec/ntpsec][master] resrict: fix format warnings.
Gary E. Miller
gitlab at mg.gitlab.com
Sat Jun 10 17:12:41 UTC 2017
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
0ea944f4 by Gary E. Miller at 2017-06-10T10:12:15-07:00
resrict: fix format warnings.
- - - - -
1 changed file:
- ntpd/ntp_config.c
Changes:
=====================================
ntpd/ntp_config.c
=====================================
--- a/ntpd/ntp_config.c
+++ b/ntpd/ntp_config.c
@@ -3436,7 +3436,8 @@ fix_node_cidr(
for (i = 0; i < 4; i++)
a[i] = mask_n >> (8 * (3 - i)) & 0xff;
- snprintf(mask_s, sizeof(mask_s), "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
+ snprintf(mask_s, sizeof(mask_s), "%u.%u.%u.%u",
+ a[0], a[1], a[2], a[3]);
}
/* lose old mask */
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0ea944f436f5ae6b09c88299c2697d53fe6dca3d
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0ea944f436f5ae6b09c88299c2697d53fe6dca3d
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170610/980484ff/attachment.html>
More information about the vc
mailing list