mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-23 11:44:53 +00:00
handle (more) FreeRTOS proprietary return codes
This commit is contained in:
1 parent
77e0faf020
commit
6a3599682b
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -1106,7 +1106,8 @@ static inline void *mg_calloc(size_t cnt, size_t size) {
|
||||
((errcode) == -pdFREERTOS_ERRNO_EWOULDBLOCK || \
|
||||
(errcode) == -pdFREERTOS_ERRNO_EISCONN || \
|
||||
(errcode) == -pdFREERTOS_ERRNO_EINPROGRESS || \
|
||||
(errcode) == -pdFREERTOS_ERRNO_EAGAIN)
|
||||
(errcode) == -pdFREERTOS_ERRNO_EAGAIN || \
|
||||
(errcode) == -pdFREERTOS_ERRNO_ENOSPC)
|
||||
|
||||
#define MG_SOCK_RESET(errcode) ((errcode) == -pdFREERTOS_ERRNO_ENOTCONN)
|
||||
|
||||
|
||||
+2
-1
@@ -29,7 +29,8 @@
|
||||
((errcode) == -pdFREERTOS_ERRNO_EWOULDBLOCK || \
|
||||
(errcode) == -pdFREERTOS_ERRNO_EISCONN || \
|
||||
(errcode) == -pdFREERTOS_ERRNO_EINPROGRESS || \
|
||||
(errcode) == -pdFREERTOS_ERRNO_EAGAIN)
|
||||
(errcode) == -pdFREERTOS_ERRNO_EAGAIN || \
|
||||
(errcode) == -pdFREERTOS_ERRNO_ENOSPC)
|
||||
|
||||
#define MG_SOCK_RESET(errcode) ((errcode) == -pdFREERTOS_ERRNO_ENOTCONN)
|
||||
|
||||
|
||||
Reference in new issue
Block a user