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
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);
}
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,
perror("read");
exit(1);
}
- if (count < in_buf->length)
+ if (count < (int)in_buf->length)
printf("Warning, only read in %d bytes, expected %d\r\n",
count, (int) in_buf->length);
}
in_buf.length = strlen(msg);
}
- 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,
&in_buf, &state, &out_buf);
*/
int send_token(int s, int flags, gss_buffer_t tok)
{
- int len, ret;
+ int ret;
unsigned char char_flags = (unsigned char) flags;
unsigned char lenbuf[4];
void print_token(tok)
gss_buffer_t tok;
{
- int i;
+ size_t i;
unsigned char *p = tok->value;
if (!verbose)
int
gss_printf (const char *format, ...) {
static char myprtfstr[4096];
- int i, len, rc=0;
- char *cp;
+ int rc=0;
va_list ap;
va_start(ap, format);