-
Notifications
You must be signed in to change notification settings - Fork 43
Update code to C11 and fix compilation warnings. #252
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
b9883b5
updating C standard to C11
eaescob 56fb7b9
more changes to get to c11
eaescob 8f0b858
add definitions for u_types if system does not provide
eaescob 813d917
force c11 and other declarations errors when compiling on Linux
eaescob 2b15fc1
adding code definition to make res functions work
eaescob 2489b55
attempting to not override our definition of res
eaescob 6db4c03
Only use the needed guard definitions
eaescob 24ebd3f
Fix HEADER rcode compilation error on Linux x86_64
eaescob 8b120f6
Fixing compilation errors to refer to h_addr_list[0] instead of just …
eaescob 739e270
remove version.c as we do not need it tracked
eaescob 74c869e
Fix C11 compilation issues and reduce warnings
eaescob 6011fb7
Uncomment random() and srandom()
eaescob 5efcef0
Significantly reduce compilation warnings and fix C11 compatibility
eaescob c7b21e5
Eliminate unused return value and implicit declaration warnings
eaescob 76c8ee8
Fix all compilation errors and significantly reduce warnings
eaescob 413028c
Fixing compilation warnings and addressing buffer sizes to comply wit…
eaescob 9160f5f
More fixes for handling new buffer sizes to address compilation warnings
eaescob 2348e88
Moved buffer length definitions earlier in file so they can be used t…
eaescob f28b1bd
Fixing compilation issues
eaescob 29672ca
Increase buffer sizes to address compilation warnings
eaescob 0add355
Resetting PATH_MAX to an appropriate value. Changed to strncpyzt to e…
eaescob f51ee01
Fixing write_pid to accommodate longer pids but also truncate file in…
eaescob 9855690
Removing USE_SSL definition
eaescob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -49,15 +49,46 @@ | |||||
| #endif | ||||||
| #endif | ||||||
|
|
||||||
| #ifdef USE_SSL | ||||||
| #include <openssl/rsa.h> /* OpenSSL stuff */ | ||||||
| #include <openssl/crypto.h> | ||||||
| #include <openssl/x509.h> | ||||||
| #include <openssl/objects.h> | ||||||
| #include <openssl/pem.h> | ||||||
| #include <openssl/ssl.h> | ||||||
| #include <openssl/err.h> | ||||||
| #endif | ||||||
|
|
||||||
| /* ======================================================================== | ||||||
| * Buffer Length Definitions - defined early for use in extern declarations | ||||||
| * ======================================================================== */ | ||||||
|
|
||||||
| /* Core IRC protocol lengths */ | ||||||
| #define HOSTLEN 255 /* Length of hostname. RFC1123 compliant - maximum FQDN length is 255 */ | ||||||
|
||||||
| #define HOSTLEN 255 /* Length of hostname. RFC1123 compliant - maximum FQDN length is 255 */ | |
| #define HOSTLEN 63 /* Length of hostname. Most hostnames are <64 chars; reduces memory usage */ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
[nitpick] The PATH_MAX increase to 4120 with a comment about 'reasonable space' is arbitrary. Consider using a more systematic approach like
PATH_MAX + NAME_MAX + 1for proper path construction bounds.