[Git][NTPsec/ntpsec][master] A few more -Werror tweaks
Hal Murray (@hal.murray)
gitlab at mg.gitlab.com
Tue Feb 11 21:35:30 UTC 2025
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
ff51e032 by Hal Murray at 2025-02-11T13:34:33-08:00
A few more -Werror tweaks
- - - - -
2 changed files:
- libaes_siv/aes_siv.c
- ntpfrob/dump.c
Changes:
=====================================
libaes_siv/aes_siv.c
=====================================
@@ -81,7 +81,7 @@ static void debug(const char *label, const unsigned char *hex, size_t len) {
if (i > 0 && i % 16 == 0) {
printf("\n ");
}
- printf("%.2x", (int)hex[i]);
+ printf("%.2x", (unsigned int)hex[i]);
if (i > 0 && i % 4 == 3) {
printf(" ");
}
=====================================
ntpfrob/dump.c
=====================================
@@ -108,8 +108,8 @@ do_dump(const iomode mode, const int force)
}
puts("}\n");
} else {
- printf("time = %ld.%09lld\n", \
- txc.time.tv_sec, (long long)txc.time.tv_usec);
+ printf("time = %lld.%09lld\n", \
+ (long long)txc.time.tv_sec, (long long)txc.time.tv_usec);
printf("verbose = \"%s\"\n", verbose[v]);
for (int i = 0; i < end; i++) {
printf("%s = %ld\n", adjkey[i], adjval[i]);
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/ff51e032e72a9070c484fe71053df88f9ba37fec
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/ff51e032e72a9070c484fe71053df88f9ba37fec
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/20250211/9d41e5e9/attachment-0001.htm>
More information about the vc
mailing list