Skip to content
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

Do not hardcode error numbers #1542

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

ellert
Copy link
Contributor

@ellert ellert commented Oct 27, 2021

The error numbers defined on Linux can not be reused on other systems
since this causes clashes.

On Linux ECHRNG is 44, but defining ECHRNG to be 44 on systems that do
not define ECHRNG is not appropriate. On e.g. kFreeBSD this will clash
with ESOCKTNOSUPPORT, which is defined as 44 on that system.

The error numbers defined on Linux can not be reused on other systems
since this causes clashes.

On Linux ECHRNG is 44, but defining ECHRNG to be 44 on systems that do
not define ECHRNG is not appropriate. On e.g. kFreeBSD this will clash
with ESOCKTNOSUPPORT, which is defined as 44 on that system.
@simonmichal simonmichal merged commit 5c70fc4 into xrootd:master Nov 1, 2021
@ellert ellert deleted the dont-harcode-error-number branch November 1, 2021 10:14
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.

None yet

2 participants