Skip to content

Conversation

@cfriedt
Copy link
Member

@cfriedt cfriedt commented Oct 16, 2024

Use int instead of ssize_t for select_get().

This eliminates the unnecessary need for POSIX types

Closes #79898

kartben
kartben previously approved these changes Oct 17, 2024
Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

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

Need to update z_vrfy_devmux_select_get as well

@cfriedt cfriedt force-pushed the issue/79898/devmux-use-int-instead-of-ssize-t branch from bc82b26 to f534aba Compare October 17, 2024 15:54
Use int instead of ssize_t for select_get().

This eliminates the unnecessary need for POSIX types.

Signed-off-by: Chris Friedt <[email protected]>
@cfriedt cfriedt force-pushed the issue/79898/devmux-use-int-instead-of-ssize-t branch from f534aba to 54b24c1 Compare October 17, 2024 15:56
@cfriedt
Copy link
Member Author

cfriedt commented Oct 17, 2024

  • return int from z_vrfy_devmux_select_get()
  • use INT_MAX instead of INT32_MAX to match int data type in new build assert

@MaureenHelm MaureenHelm merged commit d22a495 into zephyrproject-rtos:main Oct 21, 2024
@cfriedt cfriedt deleted the issue/79898/devmux-use-int-instead-of-ssize-t branch November 21, 2024 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

devmux: use int instead of ssize_t

6 participants