Skip to content

Commit

Permalink
Merge pull request #330 from avan989/new_lgtm_warning
Browse files Browse the repository at this point in the history
fix #328, lgtm warning
  • Loading branch information
skliper authored Jan 21, 2020
2 parents 64ad0f5 + 9b10459 commit 9379371
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/os/posix/os-posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
/****************************************************************************************
COMMON INCLUDE FILES
***************************************************************************************/
#ifndef _os_posix_h_
#define _os_posix_h_

#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -110,4 +112,4 @@ int32 OS_Posix_FileSysAPI_Impl_Init(void);
int32 OS_Posix_InternalTaskCreate_Impl (pthread_t *pthr, uint32 priority, size_t stacksz, PthreadFuncPtr_t entry, void *entry_arg);



#endif /* End of os-posix*/
4 changes: 2 additions & 2 deletions src/os/shared/osapi-idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,11 @@ static int32 OS_ObjectIdFindNext(uint32 idtype, uint32 *array_index, OS_common_r
{
uint32 max_id;
uint32 base_id;
uint32 local_id;
uint32 local_id = 0;
uint32 idvalue;
uint32 i;
int32 return_code;
OS_common_record_t *obj;
OS_common_record_t *obj = NULL;

base_id = OS_GetBaseForObjectType(idtype);
max_id = OS_GetMaxForObjectType(idtype);
Expand Down
2 changes: 1 addition & 1 deletion src/os/shared/osapi-sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ int32 OS_SocketAccept(uint32 sock_id, uint32 *connsock_id, OS_SockAddr_t *Addr,
OS_common_record_t *record;
OS_common_record_t *connrecord;
uint32 local_id;
uint32 conn_id;
uint32 conn_id = 0;
int32 return_code;

/* Check Parameters */
Expand Down
2 changes: 1 addition & 1 deletion src/os/shared/osapi-time.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ int32 OS_TimerDelete(uint32 timer_id)
{
OS_timecb_internal_record_t *local;
OS_common_record_t *record;
OS_common_record_t *timebase;
OS_common_record_t *timebase = NULL;
int32 return_code;
uint32 local_id;
uint32 dedicated_timebase_id;
Expand Down

0 comments on commit 9379371

Please sign in to comment.