Quellcode durchsuchen

LibC: Use NULL instead of nullptr in serenity.h

nullptr is a c++ keyword that can not be used in LibC headers.
Idan Horowitz vor 3 Jahren
Ursprung
Commit
2066491f6e
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      Userland/Libraries/LibC/serenity.h

+ 1 - 1
Userland/Libraries/LibC/serenity.h

@@ -34,7 +34,7 @@ static ALWAYS_INLINE int futex_wait(uint32_t* userspace_address, uint32_t value,
     } else {
         op = FUTEX_WAIT;
     }
-    return futex(userspace_address, op, value, abstime, nullptr, FUTEX_BITSET_MATCH_ANY);
+    return futex(userspace_address, op, value, abstime, NULL, FUTEX_BITSET_MATCH_ANY);
 }
 
 static ALWAYS_INLINE int futex_wake(uint32_t* userspace_address, uint32_t count)