diff options
author | Sam Hartman <hartmans@mit.edu> | 2011-09-19 00:59:20 +0000 |
---|---|---|
committer | Sam Hartman <hartmans@mit.edu> | 2011-09-19 00:59:20 +0000 |
commit | 849fdaed46bfcec4374809421f6bb606e0c8d95e (patch) | |
tree | e5c4cb7573763890144de706583569395e729db0 /src/appl | |
parent | afcb63156a8d43aa6a0aefcb70e6a79ddb8f0c7f (diff) | |
download | krb5-849fdaed46bfcec4374809421f6bb606e0c8d95e.zip krb5-849fdaed46bfcec4374809421f6bb606e0c8d95e.tar.gz krb5-849fdaed46bfcec4374809421f6bb606e0c8d95e.tar.bz2 |
Fixed some warnings on Windows
Windows VC compiler complains about comparison between signed and unsigned
int types, unused variables
Signed-off-by: Alexey Melnikov <aamelnikov@gmail.com>
Signed-off-by: Sam Hartman <hartmans@debian.org>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25205 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl')
-rw-r--r-- | src/appl/gss-sample/gss-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/appl/gss-sample/gss-client.c b/src/appl/gss-sample/gss-client.c index d2eaab3..1cb797d 100644 --- a/src/appl/gss-sample/gss-client.c +++ b/src/appl/gss-sample/gss-client.c @@ -395,7 +395,7 @@ read_file(file_name, in_buf) perror("read"); exit(1); } - if (count < in_buf->length) + if (count < (int)in_buf->length) fprintf(stderr, "Warning, only read in %d bytes, expected %d\n", count, (int) in_buf->length); } @@ -563,7 +563,7 @@ call_server(host, port, oid, service_name, gss_flags, auth_flag, in_buf.length = strlen((char *)in_buf.value); } - for (i = 0; i < mcount; i++) { + for (i = 0; i < (size_t)mcount; i++) { if (wrap_flag) { maj_stat = gss_wrap(&min_stat, context, encrypt_flag, GSS_C_QOP_DEFAULT, |