Make a few trivial syntactic changes to better support cross-compilation

pull/9681/head
Neil MacMullen 2019-02-12 12:01:05 +00:00
parent 091509705f
commit a7f4cbcdce
3 changed files with 3 additions and 6 deletions

View File

@ -207,7 +207,7 @@ CellularContext *AT_CellularDevice::create_context(FileHandle *fh, const char *a
return ctx;
}
AT_CellularContext *prev;
AT_CellularContext *prev=NULL;
while (curr) {
prev = curr;
curr = (AT_CellularContext *)curr->_next;

View File

@ -990,7 +990,7 @@ void AT_CellularSMS::add_info(sms_info_t *info, int index, int part_number)
return;
}
sms_info_t *current = _sms_info;
sms_info_t *prev;
sms_info_t *prev=NULL;
bool found_msg = false;
while (current) {
prev = current;

View File

@ -26,10 +26,7 @@ typedef struct trace_s {
void (*mutex_release_f)(void);
} trace_t;
static trace_t m_trace = {
.mutex_wait_f = 0,
.mutex_release_f = 0,
};
static trace_t m_trace = {};
void mutex_wait_function_set(void (*mutex_wait_f)(void))
{