1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3: Fix some 64-bit warnings

This commit is contained in:
Volker Lendecke 2010-09-25 14:59:42 -07:00
parent 0a18f89e8a
commit a0d3ffbf92
2 changed files with 6 additions and 4 deletions

View File

@ -587,7 +587,7 @@ int reg_parse_line(struct reg_parse* parser, const char* line)
DEBUG(0, ("value \"%s\" parse error"
"at line: %i pos: %li : %s",
cbuf_gets(parser->valname, 0), parser->linenum,
pos-line, pos));
(long int)(pos-line), pos));
return -3;
}
}
@ -602,7 +602,7 @@ done:
if (!srprs_skipws(&pos) || !srprs_eol(&pos, NULL)) {
DEBUG(0, ("trailing garbage at line: %i pos: %li : %s\n",
parser->linenum, pos-line, pos));
parser->linenum, (long int)(pos-line), pos));
return -1;
}
return 0;
@ -789,7 +789,8 @@ handle_iconv_errno(int err, const char* obuf, size_t linenum,
if (pos == *optr) {
pos = MAX(obuf, *optr-60);
}
DEBUG(0, ("Illegal multibyte sequence at line %lu: %s", linenum+1, pos));
DEBUG(0, ("Illegal multibyte sequence at line %lu: %s",
(long unsigned)(linenum+1), pos));
assert(ilen > 0);
do {

View File

@ -79,7 +79,8 @@ convert:
reason="Illegal multibyte sequence";
break;
}
DEBUG(0,("Conversion error: %s(%.80s) %li\n", reason, iptr, iptr-src));
DEBUG(0,("Conversion error: %s(%.80s) %li\n", reason, iptr,
(long int)(iptr-src)));
talloc_free(dst);
return -1;
}