diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 18:19:03 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-19 18:19:03 +0200 |
commit | 59f8144c50765189594d5932fc25869f9ea6e265 (patch) | |
tree | f460d9f46a99040dea402bcb3ad2d84a0e734285 /src/Listen.cxx | |
parent | 5a7c931293b55a27c3f79c6951707a8d6e2a5f6c (diff) |
*: use nullptr instead of NULL
Diffstat (limited to 'src/Listen.cxx')
-rw-r--r-- | src/Listen.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx index a953c80b4..d5c132545 100644 --- a/src/Listen.cxx +++ b/src/Listen.cxx @@ -62,7 +62,7 @@ listen_add_config_param(unsigned int port, const struct config_param *param, Error &error_r) { - assert(param != NULL); + assert(param != nullptr); if (0 == strcmp(param->value.c_str(), "any")) { return listen_socket->AddPort(port, error_r); @@ -107,7 +107,7 @@ listen_global_init(Error &error) int port = config_get_positive(CONF_PORT, DEFAULT_PORT); const struct config_param *param = - config_get_next_param(CONF_BIND_TO_ADDRESS, NULL); + config_get_next_param(CONF_BIND_TO_ADDRESS, nullptr); bool success; listen_socket = new ClientListener(); @@ -118,7 +118,7 @@ listen_global_init(Error &error) if (error.IsDefined()) return false; - if (param != NULL) { + if (param != nullptr) { /* "bind_to_address" is configured, create listeners for all values */ @@ -133,7 +133,7 @@ listen_global_init(Error &error) param = config_get_next_param(CONF_BIND_TO_ADDRESS, param); - } while (param != NULL); + } while (param != nullptr); } else { /* no "bind_to_address" configured, bind the configured port on all interfaces */ @@ -159,7 +159,7 @@ void listen_global_finish(void) { LogDebug(listen_domain, "listen_global_finish called"); - assert(listen_socket != NULL); + assert(listen_socket != nullptr); delete listen_socket; } |