Correct printf with 64bit pointer

This commit is contained in:
Godzil
2013-03-14 21:41:37 +01:00
committed by Manoël Trapier
parent d87b482eac
commit 350e569c2c
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ void show(struct outhead *headp)
* Now we can show all names.
*/
for (np = &name[0]; np < &name[headp->oh_nname]; np++) {
printf("Name %d:\n", np - name);
printf("Name %ld:\n",(long)(np - name));
showname(np);
}
}