]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
spinlock: pass 0, not NULL
authorSage Weil <sage@newdream.net>
Mon, 20 Apr 2009 18:28:08 +0000 (11:28 -0700)
committerSage Weil <sage@newdream.net>
Mon, 20 Apr 2009 18:28:08 +0000 (11:28 -0700)
src/common/Spinlock.h

index bf204b2a82af913e433ad4707a26828ab01748ed..c0bba996a336afe7db45eddeca484339f8bcc06f 100644 (file)
@@ -58,7 +58,7 @@ private:
 public:
   Spinlock(const char *n, bool ld=true, bool bt=false) :
     name(n), id(-1), lockdep(ld), backtrace(bt), nlock(0) {
-    pthread_spin_init(&_s, NULL);
+    pthread_spin_init(&_s, 0);
     if (lockdep && g_lockdep) _register();
   }
   ~Spinlock() {