From 658e74cc759db6fb6d51d5287749cff1cfd2a0a2 Mon Sep 17 00:00:00 2001 From: Fu Juntang <StrongTiger_001@163.com> Date: 星期六, 04 九月 2021 10:48:31 +0800 Subject: [PATCH] Add strict parameters checks to avoid the invalid inputs. --- src/bus_error.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/bus_error.h b/src/bus_error.h index 7677545..e625790 100644 --- a/src/bus_error.h +++ b/src/bus_error.h @@ -11,6 +11,13 @@ #define EBUS_NET 504 #define EBUS_SENDTO_SELF 505 #define EBUS_RECVFROM_WRONG_END 506 +#define EBUS_STOPED 507 +#define EBUS_EXCEED_LIMIT 508 +#define EBUS_RES_UNSUPPORT 509 +#define EBUS_RES_BUSY 510 +#define EBUS_RES_NO 511 +#define EBUS_INVALID_PARA 512 +#define EBUS_NO_MEM 513 extern int bus_errno; -- Gitblit v1.8.0