aboutsummaryrefslogtreecommitdiffstats
path: root/src/Listen.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-19 18:19:03 +0200
committerMax Kellermann <max@duempel.org>2013-10-19 18:19:03 +0200
commit59f8144c50765189594d5932fc25869f9ea6e265 (patch)
treef460d9f46a99040dea402bcb3ad2d84a0e734285 /src/Listen.cxx
parent5a7c931293b55a27c3f79c6951707a8d6e2a5f6c (diff)
downloadmpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.gz
mpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.xz
mpd-59f8144c50765189594d5932fc25869f9ea6e265.zip
*: use nullptr instead of NULL
Diffstat (limited to 'src/Listen.cxx')
-rw-r--r--src/Listen.cxx10
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;
}