Author: Joel Rosdahl
Last-Update: 2015-05-10
Description: Fix ioctl argument type in relay.c

Index: tcputils/relay.c
===================================================================
--- tcputils.orig/relay.c	2015-05-10 22:38:57.341516957 +0200
+++ tcputils/relay.c	2015-05-10 22:40:50.797161784 +0200
@@ -24,10 +24,10 @@
 /*
  *  Estimate how many bytes are available for reading on a file descriptor.
  */
-static	long
+static	int
 available_bytes(int fd)
 {
-    long	  nbytes;
+    int		  nbytes;
     struct stat	  sb;
     off_t	  pos;
 
@@ -117,7 +117,7 @@
     {
 	if (FD_ISSET(relays[i].source, &readset))
 	{
-	    long  unread = available_bytes(relays[i].source);
+	    int unread = available_bytes(relays[i].source);
 	    do 
 	    {
 		char buffer[8192];
