Patchwork [01/31] petitboot: Fix client fd check

login
register
mail settings
Submitter Geoff Levand
Date July 8, 2009, 12:11 a.m.
Message ID <20090708001135.041667840@am.sony.com>
Download mbox | patch
Permalink /patch/29544/
State New
Headers show

Comments

Geoff Levand - July 8, 2009, 12:11 a.m.
Fix a minor typo in the discover-client file descriptor check.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
 ui/common/discover-client.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

--- a/ui/common/discover-client.c
+++ b/ui/common/discover-client.c
@@ -46,7 +46,7 @@  struct discover_client* discover_client_
 	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;
 	}