@@ -62,7 +62,7 @@ enum fota_module_state {
62
62
/* The module is waiting for the event FOTA_IMAGE_APPLY to apply the image */
63
63
STATE_WAITING_FOR_IMAGE_APPLY ,
64
64
/* The FOTA module is waiting for a reboot */
65
- STATE_REBOOT_NEEDED ,
65
+ STATE_REBOOT_PENDING ,
66
66
/* The FOTA module is canceling the job */
67
67
STATE_CANCELING ,
68
68
};
@@ -100,7 +100,7 @@ static void state_downloading_update_run(void *o);
100
100
static void state_waiting_for_image_apply_entry (void * o );
101
101
static void state_waiting_for_image_apply_run (void * o );
102
102
103
- static void state_reboot_needed_entry (void * o );
103
+ static void state_reboot_pending_entry (void * o );
104
104
105
105
static void state_canceling_entry (void * o );
106
106
static void state_canceling_run (void * o );
@@ -136,8 +136,8 @@ static const struct smf_state states[] = {
136
136
NULL ,
137
137
& states [STATE_RUNNING ],
138
138
NULL ),
139
- [STATE_REBOOT_NEEDED ] =
140
- SMF_CREATE_STATE (state_reboot_needed_entry ,
139
+ [STATE_REBOOT_PENDING ] =
140
+ SMF_CREATE_STATE (state_reboot_pending_entry ,
141
141
NULL ,
142
142
NULL ,
143
143
& states [STATE_RUNNING ],
@@ -375,7 +375,7 @@ static void state_downloading_update_run(void *o)
375
375
& states [STATE_WAITING_FOR_IMAGE_APPLY ]);
376
376
break ;
377
377
case FOTA_SUCCESS_REBOOT_NEEDED :
378
- smf_set_state (SMF_CTX (state_object ), & states [STATE_REBOOT_NEEDED ]);
378
+ smf_set_state (SMF_CTX (state_object ), & states [STATE_REBOOT_PENDING ]);
379
379
break ;
380
380
case FOTA_DOWNLOAD_CANCELED :
381
381
__fallthrough ;
@@ -401,7 +401,7 @@ static void state_waiting_for_image_apply_entry(void *o)
401
401
402
402
static void state_waiting_for_image_apply_run (void * o )
403
403
{
404
- struct fota_state * state_object = o ;
404
+ const struct fota_state * state_object = ( const struct fota_state * ) o ;
405
405
406
406
if (& FOTA_CHAN == state_object -> chan ) {
407
407
const enum fota_msg_type evt = MSG_TO_FOTA_TYPE (state_object -> msg_buf );
@@ -421,7 +421,7 @@ static void state_waiting_for_image_apply_run(void *o)
421
421
422
422
break ;
423
423
case FOTA_SUCCESS_REBOOT_NEEDED :
424
- smf_set_state (SMF_CTX (state_object ), & states [STATE_REBOOT_NEEDED ]);
424
+ smf_set_state (SMF_CTX (state_object ), & states [STATE_REBOOT_PENDING ]);
425
425
break ;
426
426
default :
427
427
/* Don't care */
@@ -430,7 +430,7 @@ static void state_waiting_for_image_apply_run(void *o)
430
430
}
431
431
}
432
432
433
- static void state_reboot_needed_entry (void * o )
433
+ static void state_reboot_pending_entry (void * o )
434
434
{
435
435
ARG_UNUSED (o );
436
436
0 commit comments