Simple signed/unsigned fixes
authorKen Raeburn <raeburn@mit.edu>
Sat, 10 Mar 2007 03:56:06 +0000 (03:56 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 10 Mar 2007 03:56:06 +0000 (03:56 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19219 dc483132-0cff-0310-8789-dd5450dbe970

src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c
src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c
src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
src/slave/kpropd.c

index 343705efc2f576a1c8e1120bd850ed2f93633704..c837f95347cfb2c8329175943659ca362e4b68d6 100644 (file)
@@ -210,7 +210,7 @@ krb5_ldap_db_init(krb5_context context, krb5_ldap_context *ldap_context)
        server_info = ldap_context->server_info_list[cnt];
 
        if (server_info->server_status == NOTSET) {
-           int conns=0;
+           krb5_ui_4 conns=0;
 
            /*
             * Check if the server has to perform certificate-based authentication
index 7926484c71c72df4add7d234ea813684acd30ab8..d7b19d67d5df0fc2170bc3099fb9f8e00dc3d188 100644 (file)
@@ -1162,7 +1162,7 @@ krb5_read_tkt_policy (context, ldap_context, entries, policy)
 {
     krb5_error_code             st=0;
     unsigned int                mask=0, omask=0;
-    int                         tkt_mask=(KDB_MAX_LIFE_ATTR | KDB_MAX_RLIFE_ATTR | KDB_TKT_FLAGS_ATTR);
+    unsigned int                tkt_mask=(KDB_MAX_LIFE_ATTR | KDB_MAX_RLIFE_ATTR | KDB_TKT_FLAGS_ATTR);
     krb5_ldap_policy_params     *tktpoldnparam=NULL;
 
     if ((st=krb5_get_attributes_mask(context, entries, &mask)) != 0)
index 4991e98be03c3f3961ba8d6ff8c1f8835639bd08..76a5993fb6885c5b8cf0c315df5d8fc337614c73 100644 (file)
@@ -183,7 +183,8 @@ tohex(in, ret)
     krb5_data         in;
     krb5_data         *ret;
 {
-    int                i=0, err = 0;
+    unsigned           i=0;
+    int                       err = 0;
 
     ret->length = 0;
     ret->data = NULL;
index 77c2703917348f2997a0ee9603c6045a6c20d60d..6c93a3f7e570c4f37c1ab2ee464bfa12bd3abaf3 100644 (file)
@@ -721,7 +721,8 @@ recv_database(context, fd, database_fd, confmsg)
     krb5_data *confmsg;
 {
        krb5_ui_4       database_size; /* This must be 4 bytes */
-       int     received_size, n;
+       krb5_ui_4       received_size;
+       int             n;
        char            buf[1024];
        krb5_data       inbuf, outbuf;
        krb5_error_code retval;