Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/lfs use static properly



details:   https://anonhg.NetBSD.org/src/rev/e02e48bfdb69
branches:  trunk
changeset: 346920:e02e48bfdb69
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Aug 07 00:25:22 2016 +0000

description:
use static properly

diffstat:

 sys/ufs/lfs/lfs_balloc.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r f8cefedc8acc -r e02e48bfdb69 sys/ufs/lfs/lfs_balloc.c
--- a/sys/ufs/lfs/lfs_balloc.c  Sun Aug 07 00:12:48 2016 +0000
+++ b/sys/ufs/lfs/lfs_balloc.c  Sun Aug 07 00:25:22 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_balloc.c,v 1.88 2015/10/10 22:33:31 dholland Exp $ */
+/*     $NetBSD: lfs_balloc.c,v 1.89 2016/08/07 00:25:22 dholland Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_balloc.c,v 1.88 2015/10/10 22:33:31 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_balloc.c,v 1.89 2016/08/07 00:25:22 dholland Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_quota.h"
@@ -91,7 +91,8 @@
 
 #include <uvm/uvm.h>
 
-int lfs_fragextend(struct vnode *, int, int, daddr_t, struct buf **, kauth_cred_t);
+static int lfs_fragextend(struct vnode *, int, int, daddr_t, struct buf **,
+                         kauth_cred_t);
 
 u_int64_t locked_fakequeue_count;
 
@@ -365,9 +366,9 @@
 }
 
 /* VOP_BWRITE 1 time */
-int
-lfs_fragextend(struct vnode *vp, int osize, int nsize, daddr_t lbn, struct buf **bpp,
-    kauth_cred_t cred)
+static int
+lfs_fragextend(struct vnode *vp, int osize, int nsize, daddr_t lbn,
+    struct buf **bpp, kauth_cred_t cred)
 {
        struct inode *ip;
        struct lfs *fs;



Home | Main Index | Thread Index | Old Index