OSDN Git Service

Merge "linker: add more directories to default lib paths"
[android-x86/bionic.git] / libc / bionic / flockfile.cpp
index 3381e8e..db53828 100644 (file)
@@ -36,7 +36,7 @@
 // struct __sfileext (see fileext.h).
 
 void flockfile(FILE* fp) {
-  if (fp != NULL) {
+  if (fp != nullptr) {
     pthread_mutex_lock(&_FLOCK(fp));
   }
 }
@@ -44,7 +44,7 @@ void flockfile(FILE* fp) {
 int ftrylockfile(FILE* fp) {
   // The specification for ftrylockfile() says it returns 0 on success,
   // or non-zero on error. So return an errno code directly on error.
-  if (fp == NULL) {
+  if (fp == nullptr) {
     return EINVAL;
   }
 
@@ -52,7 +52,7 @@ int ftrylockfile(FILE* fp) {
 }
 
 void funlockfile(FILE* fp) {
-  if (fp != NULL) {
+  if (fp != nullptr) {
     pthread_mutex_unlock(&_FLOCK(fp));
   }
 }