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

Use the right booleans #9264

Merged
merged 1 commit into from Sep 3, 2019
Merged

Use the right booleans #9264

merged 1 commit into from Sep 3, 2019

Conversation

ghost
Copy link

@ghost ghost commented Aug 31, 2019

Motivation and Context

#9187 introduced a boolean_t variable in the libzfs_input_check program and used TRUE and FALSE as values. Though TRUE and FALSE happen to be defined, the intent was to use B_TRUE and B_FALSE for the sake of consistency.

Description

Change TRUE to B_TRUE and FALSE to B_FALSE.

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

@behlendorf
Copy link
Contributor

@freqlabs would you mind force updating this PR without the Requires-builders: none. Just to make sure there isn't any kind of build issue introduced by this small fix.

@behlendorf behlendorf added the Status: Accepted Ready to integrate (reviewed, tested) label Sep 3, 2019
TRUE and FALSE happen to be defined, but we should use B_TRUE and
B_FALSE for the sake of consistency.

Signed-off-by: Ryan Moeller <[email protected]>
@behlendorf behlendorf merged commit a6a2877 into openzfs:master Sep 3, 2019
@ghost ghost deleted the b_bools branch September 3, 2019 20:07
ghost pushed a commit to zfsonfreebsd/ZoF that referenced this pull request Sep 3, 2019
TRUE and FALSE happen to be defined, but we should use B_TRUE and
B_FALSE for the sake of consistency.

Reviewed-by: Richard Laager <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes openzfs#9264
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Dec 24, 2019
TRUE and FALSE happen to be defined, but we should use B_TRUE and
B_FALSE for the sake of consistency.

Reviewed-by: Richard Laager <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes openzfs#9264
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Dec 27, 2019
TRUE and FALSE happen to be defined, but we should use B_TRUE and
B_FALSE for the sake of consistency.

Reviewed-by: Richard Laager <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes openzfs#9264
tonyhutter pushed a commit that referenced this pull request Jan 23, 2020
TRUE and FALSE happen to be defined, but we should use B_TRUE and
B_FALSE for the sake of consistency.

Reviewed-by: Richard Laager <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #9264
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants