Skip to content

Commit

Permalink
Cast to void pointers to avoid alignment warnings, per nasa/cFE/pull/…
Browse files Browse the repository at this point in the history
  • Loading branch information
shintoo committed Mar 2, 2021
1 parent f5e07e6 commit 5e5d25d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fsw/src/sch_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ void SCH_EnableCmd(CFE_SB_MsgPtr_t MessagePtr)
/*
** Extract contents of command
*/
EnableCmd = (SCH_EntryCmd_t *) MessagePtr;
EnableCmd = (void *) MessagePtr;

if(SCH_VerifyCmdLength(MessagePtr, sizeof(SCH_EntryCmd_t)) == SCH_SUCCESS)
{
Expand Down Expand Up @@ -386,7 +386,7 @@ void SCH_DisableCmd(CFE_SB_MsgPtr_t MessagePtr)
/*
** Extract contents of command
*/
DisableCmd = (SCH_EntryCmd_t *) MessagePtr;
DisableCmd = (void *) MessagePtr;

if(SCH_VerifyCmdLength(MessagePtr, sizeof(SCH_EntryCmd_t)) == SCH_SUCCESS)
{
Expand Down Expand Up @@ -460,7 +460,7 @@ void SCH_EnableGroupCmd(CFE_SB_MsgPtr_t MessagePtr)
/*
** Extract command parameters
*/
EnableCmd = (SCH_GroupCmd_t *) MessagePtr;
EnableCmd = (void *) MessagePtr;

if(SCH_VerifyCmdLength(MessagePtr, sizeof(SCH_GroupCmd_t)) == SCH_SUCCESS)
{
Expand Down Expand Up @@ -551,7 +551,7 @@ void SCH_DisableGroupCmd(CFE_SB_MsgPtr_t MessagePtr)
/*
** Extract command parameters
*/
DisableCmd = (SCH_GroupCmd_t *) MessagePtr;
DisableCmd = (void *) MessagePtr;

if(SCH_VerifyCmdLength(MessagePtr, sizeof(SCH_GroupCmd_t)) == SCH_SUCCESS)
{
Expand Down

0 comments on commit 5e5d25d

Please sign in to comment.