Skip to content

Commit

Permalink
Fix type for 'sr' variables
Browse files Browse the repository at this point in the history
tn_arch_sr_save_int_dis() returns a 'TN_UWord' and not a 'int' value
  • Loading branch information
alecoding committed Oct 25, 2019
1 parent 8f95d20 commit 5a89f5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/core/tn_dqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ enum TN_RCode tn_queue_eventgrp_connect(
TN_UWord pattern
)
{
int sr_saved;
TN_UWord sr_saved;
enum TN_RCode rc = _check_param_generic(dque);

if (rc == TN_RC_OK){
Expand All @@ -783,7 +783,7 @@ enum TN_RCode tn_queue_eventgrp_disconnect(
struct TN_DQueue *dque
)
{
int sr_saved;
TN_UWord sr_saved;
enum TN_RCode rc = _check_param_generic(dque);

if (rc == TN_RC_OK){
Expand Down
12 changes: 6 additions & 6 deletions src/core/tn_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ enum TN_RCode tn_timer_create(
*/
enum TN_RCode tn_timer_delete(struct TN_Timer *timer)
{
int sr_saved;
TN_UWord sr_saved;
enum TN_RCode rc = _check_param_generic(timer);

if (rc == TN_RC_OK){
Expand All @@ -160,7 +160,7 @@ enum TN_RCode tn_timer_delete(struct TN_Timer *timer)
*/
enum TN_RCode tn_timer_start(struct TN_Timer *timer, TN_TickCnt timeout)
{
int sr_saved;
TN_UWord sr_saved;
enum TN_RCode rc = _check_param_generic(timer);

if (rc == TN_RC_OK){
Expand All @@ -177,7 +177,7 @@ enum TN_RCode tn_timer_start(struct TN_Timer *timer, TN_TickCnt timeout)
*/
enum TN_RCode tn_timer_cancel(struct TN_Timer *timer)
{
int sr_saved;
TN_UWord sr_saved;
enum TN_RCode rc = _check_param_generic(timer);

if (rc == TN_RC_OK){
Expand All @@ -198,7 +198,7 @@ enum TN_RCode tn_timer_set_func(
void *p_user_data
)
{
int sr_saved;
TN_UWord sr_saved;
enum TN_RCode rc = _check_param_generic(timer);

if (rc == TN_RC_OK){
Expand All @@ -215,7 +215,7 @@ enum TN_RCode tn_timer_set_func(
*/
enum TN_RCode tn_timer_is_active(struct TN_Timer *timer, TN_BOOL *p_is_active)
{
int sr_saved;
TN_UWord sr_saved;
enum TN_RCode rc = _check_param_generic(timer);

if (rc == TN_RC_OK){
Expand All @@ -235,7 +235,7 @@ enum TN_RCode tn_timer_time_left(
TN_TickCnt *p_time_left
)
{
int sr_saved;
TN_UWord sr_saved;
enum TN_RCode rc = _check_param_generic(timer);

if (rc == TN_RC_OK){
Expand Down

0 comments on commit 5a89f5a

Please sign in to comment.