Skip to content

Conversation

@poettering
Copy link
Member

These are kinda no-brainers, should have always existed.

Split out of #36133 which needs them.

Copy link
Member

@yuwata yuwata left a comment

Choose a reason for hiding this comment

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

LGTM. But several comments.

<title>Return Value</title>

<para>On success, and if a field was removed <function>sd_json_variant_unset_field</function> returns a
positive non-zero integer. If no matching field was found it returns zero. On failure, it returns a
Copy link
Member

Choose a reason for hiding this comment

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

Not a matter, but positive implies non-zero, sounds slightly redundant.

Copy link
Member Author

Choose a reason for hiding this comment

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

i think that's not universally accepted... signbit(0) is true after all...

dunno, wanted to avoid any confusion.

@poettering poettering added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed and removed good-to-merge/with-minor-suggestions labels Jan 23, 2025
@poettering poettering merged commit 0d9ee92 into systemd:main Jan 23, 2025
43 of 47 checks passed
@github-actions github-actions bot removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants