diff options
author | attilio <attilio@FreeBSD.org> | 2008-03-28 02:48:16 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2008-03-28 02:48:16 +0000 |
commit | f6c880cb2d8e78a05b3c20e3ef96698dc74842ce (patch) | |
tree | 54853996bff5c92c8eaa07e13965fe422e80fbbd | |
parent | e8dec714c152599d2c50ced87a4f8feac69f47be (diff) | |
download | FreeBSD-src-f6c880cb2d8e78a05b3c20e3ef96698dc74842ce.zip FreeBSD-src-f6c880cb2d8e78a05b3c20e3ef96698dc74842ce.tar.gz |
_lockmgr_args() accepts a 'char *' string as file, so modify _BUF_LOCK()
and _BUF_TIMELOCK() prototypes accordingly with this.
-rw-r--r-- | sys/sys/buf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h index 47d2dfa..d735fb7 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -268,7 +268,7 @@ extern const char *buf_wmesg; /* Default buffer lock message */ * Get a lock sleeping non-interruptably until it becomes available. */ static __inline int -_BUF_LOCK(struct buf *bp, int locktype, struct mtx *interlock, const char *file, +_BUF_LOCK(struct buf *bp, int locktype, struct mtx *interlock, char *file, int line) { int res; @@ -287,7 +287,7 @@ _BUF_LOCK(struct buf *bp, int locktype, struct mtx *interlock, const char *file, */ static __inline int _BUF_TIMELOCK(struct buf *bp, int locktype, struct mtx *interlock, - const char *wmesg, int catch, int timo, const char *file, int line) + const char *wmesg, int catch, int timo, char *file, int line) { int res; |