Change in osmo-remsim[master]: simtrace2: Set transp->udp_fd to -1 to indicate USB transport

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Mon May 25 16:16:10 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-remsim/+/18467 )


Change subject: simtrace2: Set transp->udp_fd to -1 to indicate USB transport
......................................................................

simtrace2: Set transp->udp_fd to -1 to indicate USB transport

Change-Id: Ie97f1d449509777661f7fcc2bd0c799711861184
---
M src/client/user_simtrace2.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/67/18467/1

diff --git a/src/client/user_simtrace2.c b/src/client/user_simtrace2.c
index ea89a82..39e6b32 100644
--- a/src/client/user_simtrace2.c
+++ b/src/client/user_simtrace2.c
@@ -411,6 +411,7 @@
 	ifm->addr = cfg->usb.addr;
 	if (cfg->usb.path)
 		osmo_strlcpy(ifm->path, cfg->usb.path, sizeof(ifm->path));
+	transp->udp_fd = -1;
 	transp->usb_devh = osmo_libusb_open_claim_interface(NULL, NULL, ifm);
 	if (!transp->usb_devh) {
 		fprintf(stderr, "can't open USB device\n");

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/18467
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: Ie97f1d449509777661f7fcc2bd0c799711861184
Gerrit-Change-Number: 18467
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200525/e00e8602/attachment.htm>


More information about the gerrit-log mailing list