mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
Cast 64-bit quantity to intptr_t rather than int so as to work properly
with 64-bit architectures (such as amd64). Reported by: Xin LI and Josh Paetzel
This commit is contained in:
parent
f91970991a
commit
f83a0037c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202131
|
@ -547,7 +547,7 @@ fix_extraneous(struct inoinfo *inp, struct inodesc *idesc)
|
|||
printf(" (IGNORED)\n");
|
||||
return (0);
|
||||
}
|
||||
cmd.value = (int)idesc->id_dirp->d_name;
|
||||
cmd.value = (intptr_t)idesc->id_dirp->d_name;
|
||||
cmd.size = inp->i_number; /* verify same name */
|
||||
if (sysctlbyname("vfs.ffs.unlink", 0, 0,
|
||||
&cmd, sizeof cmd) == -1) {
|
||||
|
@ -588,7 +588,7 @@ fix_extraneous(struct inoinfo *inp, struct inodesc *idesc)
|
|||
printf(" (IGNORED)\n");
|
||||
return (0);
|
||||
}
|
||||
cmd.value = (int)(cp + 1);
|
||||
cmd.value = (intptr_t)(cp + 1);
|
||||
cmd.size = inp->i_number; /* verify same name */
|
||||
if (sysctlbyname("vfs.ffs.unlink", 0, 0,
|
||||
&cmd, sizeof cmd) == -1) {
|
||||
|
|
Loading…
Reference in a new issue