Skip to content

Conversation

@yuwata
Copy link
Member

@yuwata yuwata commented Mar 24, 2023

No functional change, just refactoring.

Split-out of #26887.

@github-actions github-actions bot added the please-review PR is ready for (re-)review by a maintainer label Mar 24, 2023
Copy link
Member

@keszybz keszybz left a comment

Choose a reason for hiding this comment

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

Hmm, on their own, I'm not sure if those changes are useful. This version is much longer and it also seems harder to grok, with different layers. In the old version, things are much more straightforward.


break;
if (value) {
r = free_and_strdup(&e->value, value);
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I would expect us to replace e->value unconditionally. I.e. drop the if.

r = free_and_strdup(&e->value, value);
if (r < 0)
return r;
}
Copy link
Member

Choose a reason for hiding this comment

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

No break?

typedef struct ProcCmdlineDataEntry {
const char *key;
char *value;
char **ret;
Copy link
Member

Choose a reason for hiding this comment

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

What is ret? I think a more descriptive name would be better.

@yuwata
Copy link
Member Author

yuwata commented Mar 29, 2023

Hmm, on their own, I'm not sure if those changes are useful. This version is much longer and it also seems harder to grok, with different layers. In the old version, things are much more straightforward.

OK. I will take another way. Thank you for the comments. Closing.

@yuwata yuwata closed this Mar 29, 2023
@yuwata yuwata deleted the proc-cmdline-reimplement-many branch March 29, 2023 01:02
@github-actions github-actions bot removed the please-review PR is ready for (re-)review by a maintainer label Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants