svn commit: r248610 - in head/sys: fs/tmpfs kern

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Mar 22 07:40:35 UTC 2013


Author: pjd
Date: Fri Mar 22 07:40:34 2013
New Revision: 248610
URL: http://svnweb.freebsd.org/changeset/base/248610

Log:
  - Constify local path variable for chflagsat().
  - Use correct format characters (%lx) for u_long.
  
  This fixes the build broken in r248599.

Modified:
  head/sys/fs/tmpfs/tmpfs_vnops.c
  head/sys/kern/vfs_syscalls.c

Modified: head/sys/fs/tmpfs/tmpfs_vnops.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_vnops.c	Fri Mar 22 07:30:36 2013	(r248609)
+++ head/sys/fs/tmpfs/tmpfs_vnops.c	Fri Mar 22 07:40:34 2013	(r248610)
@@ -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,

Modified: head/sys/kern/vfs_syscalls.c
==============================================================================
--- head/sys/kern/vfs_syscalls.c	Fri Mar 22 07:30:36 2013	(r248609)
+++ head/sys/kern/vfs_syscalls.c	Fri Mar 22 07:40:34 2013	(r248610)
@@ -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;
 


More information about the svn-src-all mailing list