diff options
Diffstat (limited to 'gl/lib/randread.c')
| -rw-r--r-- | gl/lib/randread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gl/lib/randread.c b/gl/lib/randread.c index 4989d666f..e210c7a8d 100644 --- a/gl/lib/randread.c +++ b/gl/lib/randread.c @@ -161,21 +161,21 @@ randread_free_body (struct randread_source *s) default handler. Unless a non-default handler is used, NAME's lifetime should be at least that of the returned value. - Return NULL (setting errno) on failure. */ + Return nullptr (setting errno) on failure. */ struct randread_source * randread_new (char const *name, size_t bytes_bound) { if (bytes_bound == 0) - return simple_new (NULL, NULL); + return simple_new (nullptr, nullptr); else { - FILE *source = NULL; + FILE *source = nullptr; struct randread_source *s; if (name) if (! (source = fopen_safer (name, "rb"))) - return NULL; + return nullptr; s = simple_new (source, name); @@ -190,7 +190,7 @@ randread_new (char const *name, size_t bytes_bound) int e = errno; randread_free_body (s); errno = e; - return NULL; + return nullptr; } isaac_seed (&s->buf.isaac.state); } |
