summaryrefslogtreecommitdiffstats
path: root/src/plugins/sc_plugins.h
diff options
context:
space:
mode:
authorPavel Kotucek <pavel.kotucek@pantheon.tech>2019-04-29 08:35:06 +0200
committerHongjun Ni <hongjun.ni@intel.com>2019-05-15 03:00:36 +0000
commit8e38dbd3dd5f11e62e9acfed3660c02dc56236b5 (patch)
tree54eaef39ee26b0d0d25da5d3b745e567b1682f31 /src/plugins/sc_plugins.h
parent6f6ea23e7114520fe25245effd4120294841f3a2 (diff)
Fixed ACL compiler warnings
Fixed warnings : - scvpp/inc/scvpp/comm.h:52:0: warning: "ARG_CHECK" redefined - comm.c:127:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] Change-Id: I666c0347d10435681220c451976194e655d8aa04 Signed-off-by: Pavel Kotucek <pavel.kotucek@pantheon.tech>
Diffstat (limited to 'src/plugins/sc_plugins.h')
-rw-r--r--src/plugins/sc_plugins.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/plugins/sc_plugins.h b/src/plugins/sc_plugins.h
index feec482..4a784fb 100644
--- a/src/plugins/sc_plugins.h
+++ b/src/plugins/sc_plugins.h
@@ -20,32 +20,6 @@
#include <sysrepo/values.h>
#include <sysrepo/plugins.h>
-#define ARG_CHECK(retval, arg) \
- do \
- { \
- if (NULL == (arg)) \
- { \
- SRP_LOG_ERR_MSG(#arg ":NULL pointer passed."); \
- return (retval); \
- } \
- } \
- while (0)
-
-#define ARG_CHECK2(retval, arg1, arg2) \
- ARG_CHECK(retval, arg1); \
- ARG_CHECK(retval, arg2)
-
-#define ARG_CHECK3(retval, arg1, arg2, arg3) \
- ARG_CHECK(retval, arg1); \
- ARG_CHECK(retval, arg2); \
- ARG_CHECK(retval, arg3)
-
-#define ARG_CHECK4(retval, arg1, arg2, arg3, arg4) \
- ARG_CHECK(retval, arg1); \
- ARG_CHECK(retval, arg2); \
- ARG_CHECK(retval, arg3); \
- ARG_CHECK(retval, arg4)
-
//functions that sysrepo-plugin need
int sr_plugin_init_cb(sr_session_ctx_t *session, void **private_ctx);
void sr_plugin_cleanup_cb(sr_session_ctx_t *session, void *private_ctx);