celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnol...@apache.org
Subject [celix] branch master updated: etcdlib_create does not return zero as long as the malloc for that struct works.
Date Sat, 19 Sep 2020 14:17:04 GMT
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 <unitink72@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);
 


Mime
View raw message