diff --git a/contrib/ldaptcl/neoXldap.c b/contrib/ldaptcl/neoXldap.c index c76c77f1bda0281a889a81efeec3a12249ea9312..e8d386549e4c3bacad3a7b8f8128c7764c44f0cc 100644 --- a/contrib/ldaptcl/neoXldap.c +++ b/contrib/ldaptcl/neoXldap.c @@ -23,7 +23,7 @@ * Requests for permission may be sent to NeoSoft Inc, 1770 St. James Place, * Suite 500, Houston, TX, 77056. * - * $Id: neoXldap.c,v 1.1 1999/02/10 22:56:49 kunkee Exp $ + * $Id: neoXldap.c,v 1.2 1999/04/29 22:14:57 hallvard Exp $ * */ @@ -555,7 +555,7 @@ NeoX_LdapTargetObjCmd (clientData, interp, objc, objv) return TCL_ERROR; } - valPtrs = mod->mod_vals.modv_strvals = \ + valPtrs = mod->mod_vals.modv_strvals = (char **)ckalloc (sizeof (char *) * (valuesObjc + 1)); valPtrs[valuesObjc] = (char *)NULL; diff --git a/libraries/libldap/util-int.c b/libraries/libldap/util-int.c index eb0517d9bf508c9d550e56bc86c3e030c2411d70..fb6e894ee7a4ce814f6d1d682848d5927492f4f9 100644 --- a/libraries/libldap/util-int.c +++ b/libraries/libldap/util-int.c @@ -114,15 +114,15 @@ int ldap_pvt_gethostbyname_a( return r; #if (GETHOSTBYNAME_R_NARGS < 6) - r = ((*result=gethostbyname_r( name, resbuf, *buf,\ - buflen, herrno_ptr ))== NULL) ?\ + r = ((*result=gethostbyname_r( name, resbuf, *buf, + buflen, herrno_ptr ))== NULL) ? -1 : 0; #else r = gethostbyname_r( name, resbuf, *buf, buflen, result, herrno_ptr ); #endif - Debug( LDAP_DEBUG_TRACE, "ldap_pvt_gethostbyname_a: host=%s, r=%d\n",\ + Debug( LDAP_DEBUG_TRACE, "ldap_pvt_gethostbyname_a: host=%s, r=%d\n", name, r, 0 ); #ifdef NETDB_INTERNAL @@ -195,7 +195,7 @@ int ldap_pvt_gethostbyaddr_a( #if (GETHOSTBYADDR_R_NARGS < 8) r = ((*result=gethostbyaddr_r( addr, len, type, resbuf, *buf, buflen, - herrno_ptr )) == NULL) ?\ + herrno_ptr )) == NULL) ? -1 : 0; #else r = gethostbyaddr_r( addr, len, type,