Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-10-31 20:13:29 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-10-31 20:13:29 +0300
commit9b90cdf445b9893eb93c02317ef87965ec60657f (patch)
tree4d586fe0b033528dcfaa31477dec2e2cef716c88 /src/libc/strptime.cpp
parentc0b1908a673e62e8553264f31057843d11a27bc5 (diff)
Annotations for static analysis
Diffstat (limited to 'src/libc/strptime.cpp')
-rw-r--r--src/libc/strptime.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libc/strptime.cpp b/src/libc/strptime.cpp
index 9f82940b..a22288c5 100644
--- a/src/libc/strptime.cpp
+++ b/src/libc/strptime.cpp
@@ -37,6 +37,7 @@
*/
#define _GNU_SOURCE
+#include <ecv_duet3d.h>
#include <stddef.h>
#include <stdio.h>
#include <time.h>
@@ -91,7 +92,7 @@ static int first_day (int year) noexcept
#define strtol_l(_b, _s, _n, _l) StrToI32(_b, _s)
#define strptime_l(_b, _f, _t, _l) strptime_dc(_b, _f, _t)
-const char *SafeStrptime(const char *buf, const char *format, struct tm *timeptr) noexcept
+const char *SafeStrptime(const char *_ecv_array buf, const char *_ecv_array format, struct tm *timeptr) noexcept
{
char c;
int ymd = 0;
@@ -288,7 +289,7 @@ const char *SafeStrptime(const char *buf, const char *format, struct tm *timeptr
return buf;
}
-extern "C" char * strptime (const char *buf, const char *format, struct tm *timeptr) noexcept
+extern "C" char * strptime (const char *_ecv_array buf, const char *_ecv_array format, struct tm *timeptr) noexcept
{
return const_cast<char *>(SafeStrptime (buf, format, timeptr));
}