From b1f5d5ebed56c567213e3b129c92e6655f1d5400 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 1 Jun 2011 16:57:25 +0200 Subject: osmo-client-core: Use the >= 0 handling. --- src/osmo_client_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/osmo_client_core.c') diff --git a/src/osmo_client_core.c b/src/osmo_client_core.c index d651b08..0b45480 100644 --- a/src/osmo_client_core.c +++ b/src/osmo_client_core.c @@ -85,7 +85,7 @@ static void free_all(struct osmo_pcap_client *client) pcap_freecode(&client->bpf); - if (client->fd.fd != -1) { + if (client->fd.fd >= 0) { osmo_fd_unregister(&client->fd); client->fd.fd = -1; } -- cgit v1.2.3