client: unbreak SET_KEY and DELETE_KEY

In 70bcea3, I introduced incorrect handling of SET_KEY
and DELETE_KEY, leading to error on each connection.

Fix this by negating the condition.
This commit is contained in:
Erik Faye-Lund 2010-03-20 15:59:24 +01:00
parent e6a7dca881
commit fc9e038f3f

View File

@ -251,11 +251,11 @@ void sync_update(struct sync_device *d, double row)
switch (cmd) {
case SET_KEY:
if (hanle_set_key_cmd(d->sock, &d->data))
if (!hanle_set_key_cmd(d->sock, &d->data))
goto sockerr;
break;
case DELETE_KEY:
if (hanle_del_key_cmd(d->sock, &d->data))
if (!hanle_del_key_cmd(d->sock, &d->data))
goto sockerr;
break;
case SET_ROW: