X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fcommon%2Fdiscover-client.c;h=bfd3acf1817206730a06b268c728ab970518db9c;hp=bc5a4fab3192ce5795f776d0b04d2ad09499b34a;hb=ab49f0673de484c75c4bf9b202d47f825785d951;hpb=32e6a41f33e5576716b351bd473a27939fe94fa1 diff --git a/ui/common/discover-client.c b/ui/common/discover-client.c index bc5a4fa..bfd3acf 100644 --- a/ui/common/discover-client.c +++ b/ui/common/discover-client.c @@ -11,7 +11,6 @@ #include #include "ui/common/discover-client.h" -#include "ui/common/device.h" #include "pb-protocol/pb-protocol.h" struct discover_client { @@ -82,7 +81,7 @@ int discover_client_process(struct discover_client *client) message = pb_protocol_read_message(client, client->fd); if (!message) - return 0; + return -1; switch (message->action) { case PB_PROTOCOL_ACTION_ADD: