static void
translate_line(FILE *outFile, char *Line, char *path, char *LineOut)
{
- size_t offset;
+ unsigned int offset;
int cnt, res;
char *sep, *tail, *mark, *s;
unsigned char ch;
if (sep)
{
*sep = ' ';
- cnt = sscanf(s, "<%s %x%c", path, (unsigned int *)(&offset), &ch);
+ cnt = sscanf(s, "<%s %x%c", path, &offset, &ch);
if (opt_undo)
{
if (cnt == 3 && ch == ' ')
mark = opt_mark ? "* " : "";
if (opt_redo && !(res = translate_file(path, offset, LineOut)))
{
- log(outFile, "%s<%s:%x (%s)>%s", mark, path, (unsigned int)offset, LineOut, tail);
+ log(outFile, "%s<%s:%x (%s)>%s", mark, path, offset, LineOut, tail);
summ.redo++;
}
else
{
- log(outFile, "%s<%s:%x>%s", mark, path, (unsigned int)offset, tail);
+ log(outFile, "%s<%s:%x>%s", mark, path, offset, tail);
summ.undo++;
}
}
if (!(res = translate_file(path, offset, LineOut)))
{
mark = opt_mark ? "* " : "";
- log(outFile, "%s<%s:%x (%s)>%s", mark, path, (unsigned int)offset, LineOut, tail);
+ log(outFile, "%s<%s:%x (%s)>%s", mark, path, offset, LineOut, tail);
summ.translated++;
}
else