/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2014,2015,2016,2017, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
{
fprintf(stderr, "%s Error in file %s on line %d.\n", IMDstr, file, line);
- if (NULL != msg)
+ if (nullptr != msg)
{
fprintf(stderr, "%s\n", msg);
}
extern IMDSocket* imdsock_create()
{
- IMDSocket *sock = NULL;
+ IMDSocket *sock = nullptr;
#ifdef GMX_IMD
print_IMD_error(ERR_ARGS);
sfree(sock);
- return NULL;
+ return nullptr;
}
else
#endif
{
print_IMD_error(ERR_ARGS);
- return NULL;
+ return nullptr;
}
}
/* is the socket already NULL? */
- if (sock == NULL)
+ if (sock == nullptr)
{
return;
}
int ret = -1;
- if (sock == NULL)
+ if (sock == nullptr)
{
return 1;
}
do
{
/* check the set for read readiness. */
- ret = select(sock->sockfd + 1, &readfds, NULL, NULL, tval);
+ ret = select(sock->sockfd + 1, &readfds, nullptr, nullptr, tval);
/* redo on system interrupt */
}
while (ret < 0 && errno == EINTR);