Skip to content

Make ip_is_lan return bool instead of 0/-1.#1137

Merged
iphydf merged 1 commit into
TokTok:masterfrom
iphydf:bool-ip-is-lan
Aug 27, 2018
Merged

Make ip_is_lan return bool instead of 0/-1.#1137
iphydf merged 1 commit into
TokTok:masterfrom
iphydf:bool-ip-is-lan

Conversation

@iphydf

@iphydf iphydf commented Aug 27, 2018

Copy link
Copy Markdown
Member

This inverts the truthiness of the return value. Previously, 0 meant
true and -1 meant false. Now, true (1) means true and false (0)
means false.


This change is Reviewable

@iphydf iphydf added this to the v0.2.x milestone Aug 27, 2018
This inverts the truthiness of the return value. Previously, 0 meant
`true` and -1 meant `false`. Now, `true` (1) means `true` and `false` (0)
means `false`.

@robinlinden robinlinden left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm_strong:

Reviewed 8 of 8 files at r1.
Reviewable status: 0 of 1 approvals obtained

@iphydf
iphydf merged commit 0075374 into TokTok:master Aug 27, 2018
@iphydf
iphydf deleted the bool-ip-is-lan branch August 27, 2018 19:54
@robinlinden robinlinden modified the milestones: v0.2.x, v0.2.7 Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants