Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #328, lgtm warning #330

Merged
merged 1 commit into from
Jan 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 *thr, 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