- Constify local path variable for chflagsat().

- Use correct format characters (%lx) for u_long.

This fixes the build broken in r248599.
This commit is contained in:
Pawel Jakub Dawidek 2013-03-22 07:40:34 +00:00
parent b3dcd51dde
commit 051a23d4e8
2 changed files with 2 additions and 2 deletions

View File

@ -1592,7 +1592,7 @@ tmpfs_print(struct vop_print_args *v)
node = VP_TO_TMPFS_NODE(vp);
printf("tag VT_TMPFS, tmpfs_node %p, flags 0x%x, links %d\n",
printf("tag VT_TMPFS, tmpfs_node %p, flags 0x%lx, links %d\n",
node, node->tn_flags, node->tn_links);
printf("\tmode 0%o, owner %d, group %d, size %jd, status 0x%x\n",
node->tn_mode, node->tn_uid, node->tn_gid,

View File

@ -2689,7 +2689,7 @@ int
sys_chflagsat(struct thread *td, struct chflagsat_args *uap)
{
int fd = uap->fd;
char *path = uap->path;
const char *path = uap->path;
u_long flags = uap->flags;
int atflag = uap->atflag;