summaryrefslogtreecommitdiffstats
path: root/src/lib/kdb/kdb_xdr.c
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2000-09-20 19:33:21 +0000
committerEzra Peisach <epeisach@mit.edu>2000-09-20 19:33:21 +0000
commitd48a413078fd1a0e681e741634a54dc9c92631a9 (patch)
tree6b9fce08bea030bc4ec90177e9459701bd6f5da6 /src/lib/kdb/kdb_xdr.c
parent29abad610e5a44a6c589059d2730a47bb16dec99 (diff)
downloadkrb5-d48a413078fd1a0e681e741634a54dc9c92631a9.tar.gz
krb5-d48a413078fd1a0e681e741634a54dc9c92631a9.tar.xz
krb5-d48a413078fd1a0e681e741634a54dc9c92631a9.zip
* kdb_xdr.c (krb5_dbe_free_contents): Clean up signedness warning
* fetch_mkey.c (krb5_db_fetch_mkey): Clean up signedness warnings. * kdb_db2.c (destroy_file_suffix): Declare function as static. Rewrite code to use off_t and unsigned ints to handle gcc warnings. (kdb5_context_internalize) Unmarshal boolean type properly. * store_mkey.c (krb5_db_store_mkey): Use mode_t instead of int in call to umask. * configure.in: Add AC_TYPE_MODE_T and AC_TYPE_OFF_T for mode_t and off_t declarations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12661 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/kdb/kdb_xdr.c')
-rw-r--r--src/lib/kdb/kdb_xdr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/kdb/kdb_xdr.c b/src/lib/kdb/kdb_xdr.c
index 4a1fb65cc4..1d44097433 100644
--- a/src/lib/kdb/kdb_xdr.c
+++ b/src/lib/kdb/kdb_xdr.c
@@ -688,7 +688,8 @@ krb5_dbe_free_contents(context, entry)
if (entry->key_data[i].key_data_length[j]) {
if (entry->key_data[i].key_data_contents[j]) {
memset(entry->key_data[i].key_data_contents[j],
- 0, entry->key_data[i].key_data_length[j]);
+ 0,
+ (unsigned) entry->key_data[i].key_data_length[j]);
free (entry->key_data[i].key_data_contents[j]);
}
}