in conditional. (gcc -Wall)
* init_os_ctx.c (krb5_os_init_context): Remove unused variables
* an_to_ln.c (aname_do_match): Initialize local variable before
referenced.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7288
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Jan 5 09:00:47 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * locate_kdc.c (krb5_locate_kdc): Add parrentheses for assignment
+ in conditional. (gcc -Wall)
+
+ * init_os_ctx.c (krb5_os_init_context): Remove unused variables
+
+ * an_to_ln.c (aname_do_match): Initialize local variable before
+ referenced.
+
Thu Jan 4 22:23:04 1996 Theodore Y. Ts'o <tytso@dcl>
* hostaddr.c (krb5_os_hostaddr): New function which takes a
char **contextp;
{
krb5_error_code kret;
- char *regexp, *startp, *endp;
+ char *regexp, *startp, *endp = 0;
size_t regexlen;
#if HAVE_REGCOMP
regex_t match_exp;
krb5_error_code kret;
char *current;
char *fprincname;
- char *selstring;
+ char *selstring = 0;
int num_comps, compind;
char *cout;
krb5_data *datap;
{
krb5_error_code retval = 0;
char *name = 0;
+
+#if defined(_MACINTOSH) || defined(_WINDOWS)
const char *filenames[2];
+#endif
ctx->profile_secure = secure;
{
krb5_os_context os_ctx;
krb5_error_code retval = 0;
- char *name;
- const char *filenames[2];
-
+
if (ctx->os_context)
return 0;
return code;
#ifdef KRB5_USE_INET
- if (sp = getservbyname(KDC_PORTNAME, "udp"))
+ if ((sp = getservbyname(KDC_PORTNAME, "udp")))
udpport = sp->s_port;
- if (sp = getservbyname(KDC_SECONDARY_PORTNAME, "udp"))
+ if ((sp = getservbyname(KDC_SECONDARY_PORTNAME, "udp")))
sec_udpport = sp->s_port;
#endif
if (sec_udpport == udpport)