+2000-06-30 Ezra Peisach <epeisach@mit.edu>
+
+ * t_an_to_ln.c: Include <stdio.h> for prototypes.
+
+ * locate_kdc.c (krb5_locate_srv_dns): Remove unused variable.
+
+ * changepw.c, sendto_kdc.c, sn2princ.c: Add parentheses around
+ assignment used as truth value.
+
+ * ccdefname.c (get_from_os): Cast return from getuid() to long and
+ indicate use of format in sprintf.
+
2000-06-28 Ezra Peisach <epeisach@mit.edu>
* def_realm.c: Add newline at end of file.
if ((code = krb5_auth_con_init(context, &auth_context)))
goto cleanup;
- if (code = krb5_mk_req_extended(context, &auth_context, AP_OPTS_USE_SUBKEY,
- NULL, creds, &ap_req))
+ if ((code = krb5_mk_req_extended(context, &auth_context,
+ AP_OPTS_USE_SUBKEY,
+ NULL, creds, &ap_req)))
goto cleanup;
- if (code = krb5_locate_kpasswd(context,
+ if ((code = krb5_locate_kpasswd(context,
krb5_princ_realm(context, creds->client),
- &addr_p, &naddr_p))
+ &addr_p, &naddr_p)))
goto cleanup;
/* this is really obscure. s1 is used for all communications. it
specified. when rd_priv is called, *only* a remote address
is specified. Are we having fun yet? */
- if (code = krb5_auth_con_setaddrs(context, auth_context, &local_kaddr, NULL))
+ if ((code = krb5_auth_con_setaddrs(context, auth_context,
+ &local_kaddr, NULL)))
{
code = SOCKET_ERRNO;
goto cleanup;
}
- if (code = krb5_mk_chpw_req(context, auth_context, &ap_req, newpw, &chpw_req))
+ if ((code = krb5_mk_chpw_req(context, auth_context, &ap_req,
+ newpw, &chpw_req)))
{
code = SOCKET_ERRNO;
goto cleanup;
chpw_rep.length = cc;
- if (code = krb5_auth_con_setaddrs(context, auth_context, NULL, &remote_kaddr))
+ if ((code = krb5_auth_con_setaddrs(context, auth_context,
+ NULL, &remote_kaddr)))
goto cleanup;
- if(code = krb5_rd_chpw_rep(context, auth_context, &chpw_rep,
- &local_result_code, result_string))
+ if ((code = krb5_rd_chpw_rep(context, auth_context, &chpw_rep,
+ &local_result_code,
+ result_string)))
goto cleanup;
if (result_code)
if (result_code_string)
{
- if (code = krb5_chpw_result_code_string(context, local_result_code,
- &code_string))
+ if ((code = krb5_chpw_result_code_string(context,
+ local_result_code,
+ &code_string)))
goto cleanup;
result_code_string->length = strlen(code_string);
* find KDC location(s) for realm
*/
- if (retval = krb5_locate_kdc(context, realm, &addr, &naddr, use_master))
+ if ((retval = krb5_locate_kdc(context, realm, &addr, &naddr, use_master)))
return retval;
if (naddr == 0)
return (use_master ? KRB5_KDC_UNREACH : KRB5_REALM_UNKNOWN);
waitlen.tv_sec = timeout;
FD_ZERO(&readable);
FD_SET(socklist[host], &readable);
- if (nready = select(SOCKET_NFDS(socklist[host]),
- &readable,
- 0,
- 0,
- &waitlen)) {
+ if ((nready = select(SOCKET_NFDS(socklist[host]),
+ &readable,
+ 0,
+ 0,
+ &waitlen))) {
if (nready == SOCKET_ERROR) {
if (SOCKET_ERRNO == SOCKET_EINTR)
goto retry;