From 156b2c77e850825ee71e4a8e28800e04c6a79565 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 15 Apr 2008 15:55:01 +0000 Subject: [PATCH] Make num_entries an uint32 to avoid negative numbers and type warnings. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22986 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/keytab_keyfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/krb5/keytab_keyfile.c b/lib/krb5/keytab_keyfile.c index d2e37b216..a1aeeb6fe 100644 --- a/lib/krb5/keytab_keyfile.c +++ b/lib/krb5/keytab_keyfile.c @@ -52,7 +52,7 @@ RCSID("$Id$"); #define AFS_SERVERMAGICKRBCONF "/usr/afs/etc/krb.conf" struct akf_data { - int num_entries; + uint32_t num_entries; char *filename; char *cell; char *realm; @@ -203,7 +203,7 @@ akf_start_seq_get(krb5_context context, } c->sp = krb5_storage_from_fd(c->fd); - ret = krb5_ret_int32(c->sp, &d->num_entries); + ret = krb5_ret_uint32(c->sp, &d->num_entries); if(ret) { krb5_storage_free(c->sp); close(c->fd); -- 2.11.4.GIT