summaryrefslogtreecommitdiff
path: root/drivers/staging/usbip/userspace/src/usbip_list.c
diff options
context:
space:
mode:
authorAnthony Foiani <anthony.foiani@gmail.com>2013-08-23 04:06:40 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-23 16:54:26 (GMT)
commit7182f8f81a8c6425061c144d04477048826315e5 (patch)
treee1e7a3f18c654461018dfc8f25e9b4de3635e7db /drivers/staging/usbip/userspace/src/usbip_list.c
parent9ead219b3150d864696f6476f37ecefb2f3e9d86 (diff)
downloadlinux-fsl-qoriq-7182f8f81a8c6425061c144d04477048826315e5.tar.xz
staging: usbip: set usbipd server port via "-t" / "--tcp-port" option.
Add an option "-t" / "--tcp-port" to specify the TCP port to listen on. Downcase associated variables as they're no longer constants. Signed-off-by: Anthony Foiani <anthony.foiani@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/usbip/userspace/src/usbip_list.c')
-rw-r--r--drivers/staging/usbip/userspace/src/usbip_list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/usbip/userspace/src/usbip_list.c b/drivers/staging/usbip/userspace/src/usbip_list.c
index ff56255..237e099 100644
--- a/drivers/staging/usbip/userspace/src/usbip_list.c
+++ b/drivers/staging/usbip/userspace/src/usbip_list.c
@@ -131,13 +131,13 @@ static int list_exported_devices(char *host)
int rc;
int sockfd;
- sockfd = usbip_net_tcp_connect(host, USBIP_PORT_STRING);
+ sockfd = usbip_net_tcp_connect(host, usbip_port_string);
if (sockfd < 0) {
err("could not connect to %s:%s: %s", host,
- USBIP_PORT_STRING, gai_strerror(sockfd));
+ usbip_port_string, gai_strerror(sockfd));
return -1;
}
- dbg("connected to %s:%s", host, USBIP_PORT_STRING);
+ dbg("connected to %s:%s", host, usbip_port_string);
rc = get_exported_devices(host, sockfd);
if (rc < 0) {