]> git.ozlabs.org Git - petitboot/commitdiff
Fix minor typo in discover-client file descriptor check
authorGeoff Levand <geoffrey.levand@am.sony.com>
Tue, 4 Aug 2009 00:11:38 +0000 (17:11 -0700)
committerGeoff Levand <geoffrey.levand@am.sony.com>
Tue, 4 Aug 2009 00:11:38 +0000 (17:11 -0700)
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
ui/common/discover-client.c

index e8ce4dd91bda53c88230441d32815eb20ad44e0f..5b42b6c4e0aa7662eb022b93a6952e6572e29a65 100644 (file)
@@ -46,7 +46,7 @@ struct discover_client* discover_client_init(
        client->ops.cb_arg = cb_arg;
 
        client->fd = socket(AF_UNIX, SOCK_STREAM, 0);
        client->ops.cb_arg = cb_arg;
 
        client->fd = socket(AF_UNIX, SOCK_STREAM, 0);
-       if (!client->fd < 0) {
+       if (client->fd < 0) {
                pb_log("%s: socket: %s\n", __func__, strerror(errno));
                goto out_err;
        }
                pb_log("%s: socket: %s\n", __func__, strerror(errno));
                goto out_err;
        }