From owner-svn-src-head@FreeBSD.ORG Fri Mar 22 07:40:35 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 73833F3D; Fri, 22 Mar 2013 07:40:35 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 66479955; Fri, 22 Mar 2013 07:40:35 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2M7eZXK024448; Fri, 22 Mar 2013 07:40:35 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2M7eZhd024446; Fri, 22 Mar 2013 07:40:35 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201303220740.r2M7eZhd024446@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Fri, 22 Mar 2013 07:40:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r248610 - in head/sys: fs/tmpfs kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Mar 2013 07:40:35 -0000 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;