Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groupmod fixes #607

Merged
merged 3 commits into from Dec 22, 2022
Merged

Conversation

alejandro-colomar
Copy link
Collaborator

@alejandro-colomar alejandro-colomar commented Dec 16, 2022

This is a preparation patch before some more fixes. I found some problems in this file, which are not yet addressed by these fixes. This is only cleaning up so that the more important fixes are more readable.

@hallyn @ikerexxe I need to add functions that are usable in the entire project; we've seen that some parts of the project don't use libmisc, right? In which library should I put them? Or can we make the entire project depend on libmisc?

alejandro-colomar added a commit to alejandro-colomar/shadow that referenced this pull request Dec 16, 2022
The buffers have a size of 512 (see xmalloc() above), which is what
snprintf(3) expects.

Link: <shadow-maint#607>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
alejandro-colomar added a commit to alejandro-colomar/shadow that referenced this pull request Dec 16, 2022
This is shorter to write than 'unsigned long int', so we can collapse
some lines.  It is guaranteed by C99.

Link: <shadow-maint#607>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
alejandro-colomar added a commit to alejandro-colomar/shadow that referenced this pull request Dec 16, 2022
Link: <shadow-maint#607>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
@alejandro-colomar
Copy link
Collaborator Author

Changes: added link to PR in commit message

alejandro-colomar added a commit to alejandro-colomar/shadow that referenced this pull request Dec 16, 2022
This is shorter to write than 'unsigned long int', so we can collapse
some lines.  It is guaranteed by C99.

Link: <shadow-maint#607>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
alejandro-colomar added a commit to alejandro-colomar/shadow that referenced this pull request Dec 16, 2022
Link: <shadow-maint#607>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
@alejandro-colomar
Copy link
Collaborator Author

Changes: Added missing #include <stdint.h>

Copy link
Collaborator

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

LGTM

@hallyn @ikerexxe I need to add functions that are usable in the entire project; we've seen that some parts of the project don't use libmisc, right? In which library should I put them? Or can we make the entire project depend on libmisc?

I think it's fine to add those general functions in libmisc and make the entire project depend on this library.

@alejandro-colomar
Copy link
Collaborator Author

alejandro-colomar commented Dec 16, 2022

LGTM

Thanks!

@hallyn @ikerexxe I need to add functions that are usable in the entire project; we've seen that some parts of the project don't use libmisc, right? In which library should I put them? Or can we make the entire project depend on libmisc?

I think it's fine to add those general functions in libmisc and make the entire project depend on this library.

Could you please do that step of making libmisc globally available? I have little idea of the organization of the project. I'll start writing patches that don't need that, while I wait for that to be done.

@ikerexxe
Copy link
Collaborator

Unfortunately, I don't think I'll have time this year, but I'll try to accommodate some time.

The buffers have a size of 512 (see xmalloc() above), which is what
snprintf(3) expects.

Link: <shadow-maint#607>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This is shorter to write than 'unsigned long int', so we can collapse
some lines.  It is guaranteed by C99.

Link: <shadow-maint#607>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Link: <shadow-maint#607>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
@ikerexxe ikerexxe merged commit ed69fea into shadow-maint:master Dec 22, 2022
ikerexxe pushed a commit that referenced this pull request Dec 22, 2022
The buffers have a size of 512 (see xmalloc() above), which is what
snprintf(3) expects.

Link: <#607>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
ikerexxe pushed a commit that referenced this pull request Dec 22, 2022
This is shorter to write than 'unsigned long int', so we can collapse
some lines.  It is guaranteed by C99.

Link: <#607>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
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.

None yet

2 participants