-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove code for obsolete host operating systems #530
Remove code for obsolete host operating systems #530
Conversation
include/atalk/globals.h
Outdated
#ifdef HAVE_NETDB_H | ||
#include <netdb.h> /* this isn't header-protected under ultrix */ | ||
#endif /* HAVE_NETDB_H */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last I checked there were tons more HAVE_NETDB_H
checks elsewhere in the codebase. I wonder if all of them can be removed, or if they still serve a purpose for another OS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
netdb.h is a widely used header in posix oses, and contains definitions for network database operations. macOS and Ubuntu have it for example. So good to keep I think...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, that's what I thought!
So what I wanted to suggest is that we keep the ifdef and just remove the code comment.
I suppose the macro is there for non-posix systems that may not have this header...
#ifdef HAVE_NETDB_H
...
#endif /* HAVE_NETDB_H */
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
* Remove unused Tru64 code * Remove unused ultrix code * Remove reference to obsolete OS * Update unix.h defines * Update netatalk.m4 * Update globals.h
* Remove unused Tru64 code * Remove unused ultrix code * Remove reference to obsolete OS * Update unix.h defines * Update netatalk.m4 * Update globals.h
No description provided.