Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Refactor: mark no_leader properly as a constant pointer
  • Loading branch information
jnpkrn committed Jun 16, 2016
commit 9688c173397b892bd9bc646d03d18a3bcc287bcb
2 changes: 1 addition & 1 deletion src/booth.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ struct booth_site {


extern struct booth_site *local;
extern struct booth_site * no_leader;
extern struct booth_site *const no_leader;

/** @} */

Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static const struct booth_site _no_leader = {
.addr_string = "none",
.site_id = NO_ONE,
};
struct booth_site *no_leader = (struct booth_site*)& _no_leader;
struct booth_site *const no_leader = (struct booth_site*) &_no_leader;

typedef enum
{
Expand Down