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

sysroot/deploy: Some cleanup to decl-after-stmt/return FALSE style #742

Closed
wants to merge 1 commit into from

Conversation

cgwalters
Copy link
Member

And fd-relative. I also introduced some helpers here which I'll use later in
more invasive patches.

And fd-relative. I also introduced some helpers here which I'll use later in
more invasive patches.
Copy link
Member

@jlebon jlebon 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! Had just a minor nit, though it's not worth amending for.
@rh-atomic-bot r+ 54f5e42


new_deployment = ostree_deployment_new (0, osname, revision, new_deployserial,
new_bootcsum, -1);
g_autofree char *new_bootcsum = NULL;
Copy link
Member

Choose a reason for hiding this comment

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

Nit (since the goal here is to declare near the first use): there's no point in declaring new_bootcsum here if we can just pass NULL to ostree_deployment_new. Would make more sense to declare it down below before we call checksum_from_kernel_src().

@jlebon
Copy link
Member

jlebon commented Mar 20, 2017

@rh-atomic-bot r+ 54f5e42

@rh-atomic-bot
Copy link

⌛ Testing commit 54f5e42 with merge ec2f52e...

@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: jlebon
Pushing ec2f52e to master...

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.

3 participants