Skip to content

Commit

Permalink
HOTFIX IC 2020-10-28, move variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jphickey committed Nov 3, 2020
1 parent d381c47 commit b975264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fsw/pc-linux/src/cfe_psp_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ static const struct option longOpts[] = {
*/
int32 CFE_PSP_OS_EventHandler(OS_Event_t event, osal_id_t object_id, void *data)
{
char taskname[OS_MAX_API_NAME];

switch(event)
{
case OS_EVENT_RESOURCE_ALLOCATED:
Expand All @@ -170,8 +172,6 @@ int32 CFE_PSP_OS_EventHandler(OS_Event_t event, osal_id_t object_id, void *data)
break;
case OS_EVENT_TASK_STARTUP:
{
char taskname[OS_MAX_API_NAME];

/* New task is starting. Invoked from within the task context. */
/* Get the name from OSAL and propagate to the pthread/system layer */
if (OS_GetResourceName(object_id, taskname, sizeof(taskname)) == OS_SUCCESS)
Expand Down

0 comments on commit b975264

Please sign in to comment.