Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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 drivers/modem/simcom/sim7080/sim7080_meas.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L /* Required for strtok_r() */
#include <stdlib.h>
#include <string.h>
#include <time.h>
Expand Down Expand Up @@ -135,7 +137,7 @@ static int cpsi_parse_minus(uint8_t *s, uint16_t *a, uint16_t *b)

*a = (uint16_t)strtoul(tmp, NULL, 10);

tmp = strtok_r(NULL, NULL, &saveptr);
tmp = strtok_r(NULL, "-", &saveptr);
if (tmp == NULL) {
return -1;
}
Expand Down
2 changes: 2 additions & 0 deletions drivers/modem/simcom/sim7080/sim7080_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L /* Required for strtok_r() */
#include <string.h>
#include <stdlib.h>

Expand Down
Loading