From 3d9305ffd81a924e7b9ad48c6415f51d49f221a9 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 10 Mar 2007 03:56:06 +0000 Subject: [PATCH] Simple signed/unsigned fixes 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 | 2 +- src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c | 2 +- src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c | 3 ++- src/slave/kpropd.c | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c index 343705efc..c837f9534 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c @@ -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 diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c index 7926484c7..d7b19d67d 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c @@ -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) diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c index 4991e98be..76a5993fb 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c @@ -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; diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c index 77c270391..6c93a3f7e 100644 --- a/src/slave/kpropd.c +++ b/src/slave/kpropd.c @@ -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; -- 2.26.2