diff options
Diffstat (limited to 'src/usbmux.c')
| -rw-r--r-- | src/usbmux.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/usbmux.c b/src/usbmux.c index 37538da..2157e05 100644 --- a/src/usbmux.c +++ b/src/usbmux.c | |||
| @@ -15,9 +15,6 @@ | |||
| 15 | * License along with this library; if not, write to the Free Software | 15 | * License along with this library; if not, write to the Free Software |
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | */ | 17 | */ |
| 18 | #ifdef HAVE_CONFIG_H | ||
| 19 | #include <config.h> | ||
| 20 | #endif | ||
| 21 | #include <stdint.h> | 18 | #include <stdint.h> |
| 22 | #include <stdarg.h> | 19 | #include <stdarg.h> |
| 23 | #include <stdlib.h> | 20 | #include <stdlib.h> |
| @@ -848,7 +845,6 @@ int usbmux_send(usbmux_client_t client, const char *data, uint32_t datalen, | |||
| 848 | uint32_t curlen = datalen; | 845 | uint32_t curlen = datalen; |
| 849 | uint32_t packetsize = blocksize; | 846 | uint32_t packetsize = blocksize; |
| 850 | 847 | ||
| 851 | #ifdef ENABLE_HACKS | ||
| 852 | // BEGIN HACK | 848 | // BEGIN HACK |
| 853 | if ((blocksize % 128) == 0) { | 849 | if ((blocksize % 128) == 0) { |
| 854 | int cutoff = 28; | 850 | int cutoff = 28; |
| @@ -890,7 +886,6 @@ int usbmux_send(usbmux_client_t client, const char *data, uint32_t datalen, | |||
| 890 | fullsendresult -= sizeof(usbmux_tcp_header); | 886 | fullsendresult -= sizeof(usbmux_tcp_header); |
| 891 | } | 887 | } |
| 892 | // END HACK | 888 | // END HACK |
| 893 | #endif | ||
| 894 | 889 | ||
| 895 | // Set the length | 890 | // Set the length |
| 896 | client->header->length = packetsize; | 891 | client->header->length = packetsize; |
