Fix parentheses in write() to CLUSTERIP control files

This commit is contained in:
Martin Willi 2011-07-14 15:56:10 +02:00
parent 4742d6501a
commit b93d77ce67
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ static void enable_disable(private_ha_kernel_t *this, u_int segment,
file, strerror(errno));
return;
}
if (write(fd, cmd, strlen(cmd) == -1))
if (write(fd, cmd, strlen(cmd)) == -1)
{
DBG1(DBG_CFG, "writing to CLUSTERIP file '%s' failed: %s",
file, strerror(errno));