diff options
author | rsc <devnull@localhost> | 2004-12-27 05:18:22 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-12-27 05:18:22 +0000 |
commit | e8edc17986bd6a3062f75dba8543dfa7eb4451b7 (patch) | |
tree | 0585874845b6ff3c58ccf909c97bd7419a2d7bc3 | |
parent | 73722a8bbf80f47ea2df2a212516d1b857ffe29a (diff) | |
download | plan9port-e8edc17986bd6a3062f75dba8543dfa7eb4451b7.tar.gz plan9port-e8edc17986bd6a3062f75dba8543dfa7eb4451b7.tar.bz2 plan9port-e8edc17986bd6a3062f75dba8543dfa7eb4451b7.zip |
lock using Lock instead of QLock.
qlocks are complicated enough that
they need to be able to print during
debugging.
-rw-r--r-- | src/lib9/fmtlock2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib9/fmtlock2.c b/src/lib9/fmtlock2.c index d56eed74..d711e6d4 100644 --- a/src/lib9/fmtlock2.c +++ b/src/lib9/fmtlock2.c @@ -1,16 +1,16 @@ #include <u.h> #include <libc.h> -static QLock fmtlock; +static Lock fmtlock; void __fmtlock(void) { - qlock(&fmtlock); + lock(&fmtlock); } void __fmtunlock(void) { - qunlock(&fmtlock); + unlock(&fmtlock); } |