Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
a200883a
Commit
a200883a
authored
Mar 07, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bmc: better types and parameters (trivial)
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
02b6375f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
ppsi.h
include/ppsi/ppsi.h
+1
-2
bmc.c
proto-standard/bmc.c
+5
-5
common-fun.c
proto-standard/common-fun.c
+1
-1
No files found.
include/ppsi/ppsi.h
View file @
a200883a
...
...
@@ -236,8 +236,7 @@ extern void pp_update_clock(struct pp_instance *ppi);
/* bmc.c */
extern
void
m1
(
struct
pp_instance
*
ppi
);
extern
void
s1
(
struct
pp_instance
*
ppi
,
MsgHeader
*
header
,
MsgAnnounce
*
ann
);
extern
UInteger8
bmc
(
struct
pp_instance
*
ppi
,
struct
pp_frgn_master
*
frgn_master
);
extern
int
bmc
(
struct
pp_instance
*
ppi
);
/* msg.c */
extern
void
msg_pack_header
(
struct
pp_instance
*
ppi
,
void
*
buf
);
...
...
proto-standard/bmc.c
View file @
a200883a
...
...
@@ -173,8 +173,8 @@ static int bmc_dataset_cmp(struct pp_instance *ppi,
}
/* State decision algorithm 9.3.3 Fig 26 */
UInteger8
bmc_state_decision
(
struct
pp_instance
*
ppi
,
MsgHeader
*
hdr
,
MsgAnnounce
*
ann
)
int
bmc_state_decision
(
struct
pp_instance
*
ppi
,
MsgHeader
*
hdr
,
MsgAnnounce
*
ann
)
{
int
cmpres
;
...
...
@@ -227,10 +227,10 @@ UInteger8 bmc_state_decision(struct pp_instance *ppi,
}
UInteger8
bmc
(
struct
pp_instance
*
ppi
,
struct
pp_frgn_master
*
frgn_master
)
int
bmc
(
struct
pp_instance
*
ppi
)
{
Integer16
i
,
best
;
struct
pp_frgn_master
*
frgn_master
=
ppi
->
frgn_master
;
int
i
,
best
;
if
(
!
ppi
->
number_foreign_records
)
if
(
ppi
->
state
==
PPS_MASTER
)
{
...
...
proto-standard/common-fun.c
View file @
a200883a
...
...
@@ -65,7 +65,7 @@ int st_com_check_record_update(struct pp_instance *ppi)
if
(
ppi
->
record_update
)
{
PP_VPRINTF
(
"event STATE_DECISION_EVENT
\n
"
);
ppi
->
record_update
=
FALSE
;
ppi
->
next_state
=
bmc
(
ppi
,
ppi
->
frgn_master
);
ppi
->
next_state
=
bmc
(
ppi
);
if
(
ppi
->
next_state
!=
ppi
->
state
)
return
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment