Fix parentheses in write() to CLUSTERIP control files
This commit is contained in:
parent
4742d6501a
commit
b93d77ce67
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue