Skip to content

sys/net/gnrc_tcp: minor style fixes#22232

Merged
maribu merged 1 commit intoRIOT-OS:masterfrom
maribu:sys/net/gnrc_tcp/fix-compilation-on-glibc
May 5, 2026
Merged

sys/net/gnrc_tcp: minor style fixes#22232
maribu merged 1 commit intoRIOT-OS:masterfrom
maribu:sys/net/gnrc_tcp/fix-compilation-on-glibc

Conversation

@maribu
Copy link
Copy Markdown
Member

@maribu maribu commented Apr 30, 2026

Contribution description

  • drop a few unused headers
  • fix two linter warnings with regard to precision loss due to implicit type conversion

Testing procedure

Changing the type from kernel_pid_t to int in gnrc_tcp_init() to also allow passing through errors will probably cause different code to be generated and allow proper error handling. Otherwise, this should be a no-op.

Issues/PRs references

Declaration of AI-Tools / LLMs usage:

AI-Tools / LLMs that were used are:

  • none

@maribu maribu requested a review from miri64 as a code owner April 30, 2026 18:33
@github-actions github-actions Bot added Area: network Area: Networking Area: sys Area: System labels Apr 30, 2026
@crasbe crasbe added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Apr 30, 2026
@riot-ci
Copy link
Copy Markdown

riot-ci commented Apr 30, 2026

Murdock results

✔️ PASSED

253deb7 sys/net/gnrc_tcp: minor style fixes

Success Failures Total Runtime
11108 0 11108 16m:58s

Artifacts

@maribu maribu enabled auto-merge May 1, 2026 04:49
@maribu
Copy link
Copy Markdown
Member Author

maribu commented May 1, 2026

I'll rebase this one once #22230 is merged

@maribu maribu added the State: waiting for other PR State: The PR requires another PR to be merged first label May 1, 2026
@maribu maribu changed the title sys/net/gnrc_tcp: fix compilation with modern glibc sys/net/gnrc_tcp: minor style fixes May 1, 2026
@crasbe crasbe added State: needs rebase State: The codebase was changed since the creation of the PR, making a rebase necessary and removed State: waiting for other PR State: The PR requires another PR to be merged first labels May 1, 2026
- drop a few unused headers
- fix two linter warnings with regard to precision loss due to implicit
  type conversion
    - The type change in `gnrc_tcp_init()` may actually allow `-EEXIST`
      returned by `_gnrc_tcp_eventloop_init()` to be correctly passed
      through.
@maribu maribu force-pushed the sys/net/gnrc_tcp/fix-compilation-on-glibc branch from 7d2e60e to 253deb7 Compare May 1, 2026 17:56
@maribu maribu removed the State: needs rebase State: The codebase was changed since the creation of the PR, making a rebase necessary label May 1, 2026
Copy link
Copy Markdown
Contributor

@crasbe crasbe left a comment

Choose a reason for hiding this comment

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

Looks good.

@maribu maribu added this pull request to the merge queue May 4, 2026
Merged via the queue into RIOT-OS:master with commit dbb6d83 May 5, 2026
27 checks passed
@maribu maribu deleted the sys/net/gnrc_tcp/fix-compilation-on-glibc branch May 5, 2026 04:28
@maribu
Copy link
Copy Markdown
Member Author

maribu commented May 5, 2026

Thx ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants