You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2020/09/19 14:17:04 UTC

[celix] branch master updated: etcdlib_create does not return zero as long as the malloc for that struct works.

This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to refs/heads/master by this push:
     new fd57348  etcdlib_create does not return zero as long as the malloc for that struct works.
     new dc08b88  Merge pull request #284 from unitink72/patch-1
fd57348 is described below

commit fd57348ad9ce25cf45b3b80b7b02ad4b7cb19865
Author: unitink72 <un...@users.noreply.github.com>
AuthorDate: Fri Sep 18 09:10:52 2020 -0500

    etcdlib_create does not return zero as long as the malloc for that struct works.
    
    Once the malloc is called, a non-zero value is returned whether the connection attempt is successful or fails.
---
 libs/etcdlib/api/etcdlib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/etcdlib/api/etcdlib.h b/libs/etcdlib/api/etcdlib.h
index 1d6de8b..809163e 100644
--- a/libs/etcdlib/api/etcdlib.h
+++ b/libs/etcdlib/api/etcdlib.h
@@ -55,7 +55,7 @@ typedef void (*etcdlib_key_value_callback) (const char *key, const char *value,
  * @param const char* server. String containing the IP-number of the server.
  * @param int port. Port number of the server.
  * @param int flags. bitwise flags to control etcdlib initialization. 
- * @return 0 on success, non zero otherwise.
+ * @return Pointer to the etcdlib_t struct needed by subsequent api calls
  */
 etcdlib_t* etcdlib_create(const char* server, int port, int flags);