Skip to content

net/udprelay: write -1 instead of 0 - 1 - #4271

Merged
BaseMax merged 2 commits into
mainfrom
udprelay-negative-literals
Nov 26, 2026
Merged

BaseMax merged 2 commits into
mainfrom
udprelay-negative-literals

Conversation

@BaseMax

@BaseMax BaseMax commented Nov 26, 2026

Copy link
Copy Markdown
Member

#4269 was written before #4268 made 0 - 1 an error (E304), so on current main every program that imports net/udprelay, and therefore net/tun, fails to build with 14 errors.

This rewrites them as -1 in the package and its two tests.

Tested with a compiler built from main: all net_tun_* and net_udprelay tests in English and Persian pass.

@BaseMax
BaseMax requested a review from a team as a code owner November 26, 2026 15:24
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@BaseMax
BaseMax merged commit 7efcf7f into main Nov 26, 2026
8 checks passed
@BaseMax
BaseMax deleted the udprelay-negative-literals branch November 26, 2026 15:25
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.

1 participant