summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-03-22 07:40:34 +0000
committerpjd <pjd@FreeBSD.org>2013-03-22 07:40:34 +0000
commit91184d303fb67f95efb9290219bfdb7b9594ab73 (patch)
treec8b902703a5a15e0722ce487d8107c7910b85df0
parent0cbbbb7d30a75ad624744fd9a52d1a8e6eccb40b (diff)
downloadFreeBSD-src-91184d303fb67f95efb9290219bfdb7b9594ab73.zip
FreeBSD-src-91184d303fb67f95efb9290219bfdb7b9594ab73.tar.gz
- Constify local path variable for chflagsat().
- Use correct format characters (%lx) for u_long. This fixes the build broken in r248599.
-rw-r--r--sys/fs/tmpfs/tmpfs_vnops.c2
-rw-r--r--sys/kern/vfs_syscalls.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c
index 156fd43..b79af38 100644
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -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,
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 10e9c99..29cb7bd 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -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;
OpenPOWER on IntegriCloud