-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 unneeded namespacing in header files #921
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* \file net.h | ||
* | ||
* \brief Deprecated header file that includes mbedtls/net_sockets.h | ||
* \brief Deprecated header file that includes net_sockets.h | ||
* | ||
* \deprecated Superseded by mbedtls/net_sockets.h | ||
*/ | ||
|
@@ -25,7 +25,7 @@ | |
*/ | ||
|
||
#if !defined(MBEDTLS_DEPRECATED_REMOVED) | ||
#include "mbedtls/net_sockets.h" | ||
#include "net_sockets.h" | ||
#if defined(MBEDTLS_DEPRECATED_WARNING) | ||
#warning "Deprecated header file: Superseded by mbedtls/net_sockets.h" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we change this one as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @andresag01 Why do you think it shouldn't change? Although There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was a long time ago, so what I probably meant is that in the message for this warning there is a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think in the message, it's more appropriate to keep it as is, as it is intended for human readers, and it's informative with the current wording There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I personally think it's better to keep it as it is. |
||
#endif /* MBEDTLS_DEPRECATED_WARNING */ | ||
|
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.
Minor: Why did you remove
mbedtls/
from this comment for example and not from the one below?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.
I don't really have a good answer.
Probably because in this comment, it's more reasonable that a human reader will read the file within the same folder, and in the warning message, the compilation will probably be from the root folder. I'm fine either way