mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 07:47:35 +00:00
Style: Remove uses of NULL, substituting nullptr
This commit is contained in:
parent
93f4388e45
commit
5d5c32cec1
7 changed files with 8 additions and 8 deletions
|
@ -175,7 +175,7 @@ int main(int argc, char** argv)
|
|||
highest_fd = max(highest_fd, fd);
|
||||
}
|
||||
|
||||
int ready = select(highest_fd + 1, &readfds, &writefds, &exceptfds, NULL);
|
||||
int ready = select(highest_fd + 1, &readfds, &writefds, &exceptfds, nullptr);
|
||||
if (ready == -1) {
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
|
|
|
@ -65,7 +65,7 @@ static Count get_count(const String& file_name)
|
|||
file_pointer = stdin;
|
||||
} else {
|
||||
count.name = file_name;
|
||||
if ((file_pointer = fopen(file_name.characters(), "r")) == NULL) {
|
||||
if ((file_pointer = fopen(file_name.characters(), "r")) == nullptr) {
|
||||
fprintf(stderr, "wc: unable to open %s\n", file_name.characters());
|
||||
count.exists = false;
|
||||
return count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue