* Makefile.in (t_walk_rtree, t_kerb): Do not link against kdb libraries
authorEzra Peisach <epeisach@mit.edu>
Tue, 12 Jun 2001 15:02:34 +0000 (15:02 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 12 Jun 2001 15:02:34 +0000 (15:02 +0000)
for these test executables.

* srv_rcache.c (krb5_get_server_rcache): Cast argument to
isgraph() to int.

* init_ctx.c: Cast arguments to isspace() to int. If unix is defined,
include ../krb5_libinit.h. There has to be a better was for windows.

* conv_princ.c (krb5_425_conv_principal): Cast argument to isupper().
to int.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13340 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/Makefile.in
src/lib/krb5/krb/conv_princ.c
src/lib/krb5/krb/init_ctx.c
src/lib/krb5/krb/srv_rcache.c

index 2802e8cb5b7b62809e1106a0dc421c8bbe9bf37d..3899ed77da49326528c712b67e9eb1e5ca537a83 100644 (file)
@@ -1,3 +1,17 @@
+2001-06-12  Ezra Peisach  <epeisach@mit.edu>
+
+       * Makefile.in (t_walk_rtree, t_kerb): Do not link against kdb libraries
+       for these test executables. 
+
+       * srv_rcache.c (krb5_get_server_rcache): Cast argument to
+       isgraph() to int.
+
+       * init_ctx.c: Cast arguments to isspace() to int. If unix is defined, 
+       include ../krb5_libinit.h. There has to be a better was for windows.
+
+       * conv_princ.c (krb5_425_conv_principal): Cast argument to isupper().
+       to int.
+
 2001-06-11  Ezra Peisach  <epeisach@mit.edu>
 
        * str_conv.c: If strptime() is present on system without a
index 19c1da40cd7bef41d60b80f648cb8ea03c4dca16..641817854f3523177137b16e009fa8e0b7ad809b 100644 (file)
@@ -291,13 +291,11 @@ T_SER_OBJS= t_ser.o ser_actx.o ser_adata.o ser_addr.o ser_auth.o ser_cksum.o \
 
 T_DELTAT_OBJS= t_deltat.o deltat.o
 
-t_walk_rtree: $(T_WALK_RTREE_OBJS) $(KDB5_DEPLIBS) $(KRB5_BASE_DEPLIBS)
-       $(CC_LINK) -o t_walk_rtree $(T_WALK_RTREE_OBJS) \
-               $(KDB5_LIBS) $(KRB5_BASE_LIBS)
+t_walk_rtree: $(T_WALK_RTREE_OBJS) $(KRB5_BASE_DEPLIBS)
+       $(CC_LINK) -o t_walk_rtree $(T_WALK_RTREE_OBJS) $(KRB5_BASE_LIBS)
 
-t_kerb: $(T_KERB_OBJS) $(KDB5_DEPLIBS) $(KRB5_BASE_DEPLIBS)
-       $(CC_LINK) -o t_kerb $(T_KERB_OBJS) \
-               $(KDB5_LIBS) $(KRB5_BASE_LIBS)
+t_kerb: $(T_KERB_OBJS) $(KRB5_BASE_DEPLIBS)
+       $(CC_LINK) -o t_kerb $(T_KERB_OBJS) $(KRB5_BASE_LIBS)
 
 t_ser: $(T_SER_OBJS) $(KDB5_DEPLIBS) $(KRB5_BASE_DEPLIBS)
        $(CC_LINK) -o t_ser $(T_SER_OBJS) \
index 8805fe0d5bba6e63505d208a56e184c1f90ef9e9..fb1e3465f5093789a5cc5cc96c733110f79c9e59 100644 (file)
@@ -318,7 +318,7 @@ krb5_425_conv_principal(context, name, instance, realm, princ)
                      return retval;
                  if (domain) {
                      for (cp = domain; *cp; cp++)
-                         if (isupper(*cp))
+                         if (isupper((int) (*cp)))
                              *cp = tolower(*cp);
                      strncat(buf, ".", sizeof(buf) - 1 - strlen(buf));
                      strncat(buf, domain, sizeof(buf) - 1 - strlen(buf));
index 6a68720a0c6f3b619c6b79b777fca59a7dbd6d25..e42095106fa97e7bb5e069098fd9771c40ef0fd4 100644 (file)
 #include "k5-int.h"
 #include <ctype.h>
 #include "brand.c"
+/* There has to be a better way for windows... */
+#if defined(unix) 
+#include "../krb5_libinit.h"
+#endif
 
 /* The des-mdX entries are last for now, because it's easy to
    configure KDCs to issue TGTs with des-mdX keys and then not accept
@@ -329,11 +333,11 @@ get_profile_etype_list(context, ktypes, profstr, ctx_count, ctx_list)
        count = 0;
        sp = retval;
        while (sp) {
-           for (ep = sp; *ep && (*ep != ',') && !isspace(*ep); ep++)
+           for (ep = sp; *ep && (*ep != ',') && !isspace((int) (*ep)); ep++)
                ;
            if (*ep) {
                *ep++ = '\0';
-               while (isspace(*ep) || *ep == ',')
+               while (isspace((int) (*ep)) || *ep == ',')
                    *ep++ = '\0';
            } else
                ep = (char *) NULL;
index 33e76842e8a75219ce8a91eab4501cc2469b489e..ad5f7bf5a6971816f47f1786828bf03539db3d18 100644 (file)
@@ -61,7 +61,7 @@ krb5_get_server_rcache(context, piece, rcptr)
     for (i = 0; i < piece->length; i++) {
        if (piece->data[i] == '\\')
            len++;
-       else if (!isgraph(piece->data[i]))
+       else if (!isgraph((int) piece->data[i]))
            len += 3;
     }
 
@@ -84,7 +84,7 @@ krb5_get_server_rcache(context, piece, rcptr)
            cachename[p++] = '\\';
            continue;
        }
-       if (!isgraph(piece->data[i])) {
+       if (!isgraph((int) piece->data[i])) {
            sprintf(tmp, "%03o", piece->data[i]);
            cachename[p++] = '\\';
            cachename[p++] = tmp[0];