Skip to content

Conversation

@he32
Copy link

@he32 he32 commented Nov 30, 2015

This is a set of changes mostly pulled from the NetBSD
repository, where ntp has been tweaked to build cleanly
with the set of warning flags we enable in our build.

There are a few additions which are of my own, which
came from trying to build the code after applying these
changes.

Ref. posting to [email protected], under the subject
"Patches for stricter compiler settings" of 29 Nov 2015.

Best regards,

Håvard

he32 added 30 commits November 30, 2015 10:08
Use const char* where appropriate to avoid discarding constness.
Use size_t type where appropriate to avoid signedness warnings,
adjust format accordingly.
Add prototype to function pointer array declarations.
Cast arguments to isxxxxx(): undefined outside of <-1,max(u_char)>
A couple of variables changed from int to size_t to avoid signedness warnings.
Convert code to use a literal format.
Cast arg to islower() to ensure safe value range of argument.
The VOIDP() replaces a complicated double cast.
This should avoid warnings about incompatible pointer types.
he32 added 3 commits November 30, 2015 12:11
Actually, this was a bug of my own; NetBSD uses asprintf() and
therefore avoids this particular problem.  However, asprintf()
isn't sufficiently standardized to use here, I suspect.
@hstenn
Copy link

hstenn commented Feb 26, 2018

Gents, what's the status of this report? Can we please track any pending or new issues like this at bugs.ntp.org?

@hstenn
Copy link

hstenn commented Apr 8, 2018

Folks, I know we've made changes to the codebase since this was opened, and we've just fixed even more of these via http://bugs.ntp.org/show_bug.cgi?id=2821

Can we close this issue?

@he32
Copy link
Author

he32 commented Apr 8, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants