Репозитории ALT
S: | 5.10-alt1 |
D: | 0.1.4-alt0.1 |
5.1: | 0.1.7-alt0.1 |
4.1: | 0.1.5-alt1 |
Группа :: Система/Настройка/Сеть
Пакет: usbip
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: usbip-svn-r82-alt.patch
Скачать
Скачать
diff -urN usbip-svn-r82.orig/src/cmd/usbaid.c usbip-svn-r82/src/cmd/usbaid.c
--- usbip-svn-r82.orig/src/cmd/usbaid.c 2007-09-08 03:35:32 +0300
+++ usbip-svn-r82/src/cmd/usbaid.c 2008-08-10 18:45:54 +0300
@@ -294,7 +295,7 @@
} while( bufflen > 0 );
- dbg("received %d bytes", total);
+ dbg("received %zd bytes", total);
return total;
}
diff -urN usbip-svn-r82.orig/src/cmd/usbip_export.c usbip-svn-r82/src/cmd/usbip_export.c
--- usbip-svn-r82.orig/src/cmd/usbip_export.c 2008-08-10 18:26:52 +0300
+++ usbip-svn-r82/src/cmd/usbip_export.c 2008-08-10 18:48:49 +0300
@@ -49,7 +49,7 @@
edev = busid_to_edev(busid);
if( edev == NULL ) {
err( "no device found matching busid" );
- goto exit_failure;
+ goto exit_failure_simple;
}
/*
@@ -61,7 +61,7 @@
sockfd = tcp_connect(host, USBAID_PORT_STRING);
if( sockfd < 0 ) {
err("tcp connection failed");
- goto exit_failure;
+ goto exit_failure_simple;
}
dbg("tcp connection established");
@@ -106,6 +106,7 @@
exit_failure:
close(sockfd);
+exit_failure_simple:
usbip_stub_driver_close();
return -1;
}