summaryrefslogtreecommitdiff
path: root/cld80211-lib
diff options
context:
space:
mode:
authorVinay Gannevaram <vganneva@codeaurora.org>2019-09-19 09:47:39 -0700
committerVinay Gannevaram <vganneva@codeaurora.org>2019-10-15 15:01:50 +0530
commit8b9847eca65dfdb4d5631fb75d9165fe1f7aa328 (patch)
treedc6e26b677245d41db4139665873c03658e03913 /cld80211-lib
parent574a0f4f00ee5bf6af46965ba1854be0d94899d9 (diff)
cld80211_lib: Add void in cld80211_init() argument
Adding void keyword in cld80211_init() argument so as to avoid type mismatch issue and a resultant crash when this lib is used by any C++ code. CRs-Fixed: 2545658 Change-Id: Ic4e22316caf04fd41d6e3ed5327d225ef1ae04d4
Diffstat (limited to 'cld80211-lib')
-rw-r--r--cld80211-lib/cld80211_lib.c2
-rw-r--r--cld80211-lib/cld80211_lib.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/cld80211-lib/cld80211_lib.c b/cld80211-lib/cld80211_lib.c
index a21a012..fa4f1a1 100644
--- a/cld80211-lib/cld80211_lib.c
+++ b/cld80211-lib/cld80211_lib.c
@@ -457,7 +457,7 @@ int cld80211_recv(struct cld80211_ctx *ctx, int timeout, bool recv_multi_msg,
}
-struct cld80211_ctx * cld80211_init()
+struct cld80211_ctx * cld80211_init(void)
{
struct cld80211_ctx *ctx;
diff --git a/cld80211-lib/cld80211_lib.h b/cld80211-lib/cld80211_lib.h
index 3dd53bb..6c95aee 100644
--- a/cld80211-lib/cld80211_lib.h
+++ b/cld80211-lib/cld80211_lib.h
@@ -75,7 +75,7 @@ enum cld80211_attr {
* Retuns valid sock only if socket creation is succesful and cld80211
* family is present, returns NULL otherwise
*/
-struct cld80211_ctx *cld80211_init();
+struct cld80211_ctx *cld80211_init(void);
/**
* free the socket created in cld80211_init()