* locate_kdc.c (krb5_locate_kdc): Add parrentheses for assignment
authorEzra Peisach <epeisach@mit.edu>
Thu, 11 Jan 1996 00:22:43 +0000 (00:22 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 11 Jan 1996 00:22:43 +0000 (00:22 +0000)
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

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/an_to_ln.c
src/lib/krb5/os/init_os_ctx.c
src/lib/krb5/os/locate_kdc.c

index 9448261403ecd10a04cbca235824d1334815020f..b77b45d5f418ef31740c14c8b6f965f87117fce4 100644 (file)
@@ -1,3 +1,13 @@
+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
index c0c72fb725046aaa316f6b6d67d3e3faa48f8014..9748daf66e5731da33453ada3b857fc751f1b695 100644 (file)
@@ -207,7 +207,7 @@ aname_do_match(string, contextp)
     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;
@@ -479,7 +479,7 @@ rule_an_to_ln(context, rule, aname, lnsize, lname)
     krb5_error_code    kret;
     char               *current;
     char               *fprincname;
-    char               *selstring;
+    char               *selstring = 0;
     int                        num_comps, compind;
     char               *cout;
     krb5_data          *datap;
index ea5d80af7b45a55fb9e966d6fe0c1043a254d8fc..ba80694bc552b13940d9a88350de2dcdbc194b61 100644 (file)
@@ -105,7 +105,10 @@ os_init_paths(ctx, secure)
 {
        krb5_error_code retval = 0;
        char *name = 0;
+
+#if defined(_MACINTOSH) || defined(_WINDOWS)
        const char *filenames[2];
+#endif
 
        ctx->profile_secure = secure;
 
@@ -156,9 +159,7 @@ krb5_os_init_context(ctx)
 {
        krb5_os_context os_ctx;
        krb5_error_code retval = 0;
-       char *name;
-       const char *filenames[2];
-       
+
        if (ctx->os_context)
                return 0;
 
index d5a280803d9e4342a26571b9b0ca1f0b139a3af3..418072f8f7451d19fcf23b3b34edab5005edd303 100644 (file)
@@ -75,9 +75,9 @@ krb5_locate_kdc(context, realm, addr_pp, naddrs)
        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)