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

Remove global variable from notify_client #154

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

clumens
Copy link

@clumens clumens commented Oct 25, 2024

This one got a little out of control, unfortunately, due to all the networking related functions that call each other. However, there's nothing tricky going on here. It's just adding a parameter all over the place.

clumens and others added 3 commits October 25, 2024 10:56
This also requires modifying foreach_tkt_req to take a config variable
as well.

Co-authored-by: Jan Pokorny <[email protected]>
* Add braces around some nearby conditional blocks.

* Make add_hmac a static function and move it up in the source file to
  avoid a function declaration.

* Convert _FOREACH_NODE to FOREACH_NODE in booth_udp_broadcast_auth.

* Change other network functions to be static.

Co-authored-by: Jan Pokorny <[email protected]>
@clumens clumens requested a review from jfriesse October 25, 2024 17:24
Copy link
Member

@jfriesse jfriesse left a comment

Choose a reason for hiding this comment

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

Just small "space" nitpick otherwise I haven't found anything obviously wrong ... but it is large patch so I'm bit less confident with review than with previous ones.

struct booth_site *leader,
struct boothc_ticket_msg *msg
)
static int process_UPDATE (struct booth_config *conf, struct ticket_config *tk,
Copy link
Member

Choose a reason for hiding this comment

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

I think it make sense to remove space between process_UPDATE and { similarly as elsewhere (answer_HEARTBEAT, process_REVOKE)

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.

2 participants