freebsd-ports/lang/rexx-regina/files/patch-rxstack.c
Kurt Jaeger f1e794db90 lang/rexx-regina: 3.8.2 -> 3.9.1
- submitter becomes maintainer
- Makefile tidied, and passes portlint -C
- rc.d file corrected; now passes rclint
- port now installs documentation (PDF), not previously included
- added DOCS option, controlling installation of above
- files in /usr/local/share now in directories that actually match the
  name of the port

PR:		212242
Submitted by:	bob@eager.cx
2016-08-29 18:37:40 +00:00

38 lines
1.7 KiB
C

--- rxstack.c.orig 2014-06-22 03:45:14 UTC
+++ rxstack.c
@@ -1575,7 +1575,7 @@ int rxstack_pull_line_off_queue( Client
if ( q->oldest == NULL )
q->oldest = client;
rc = RXSTACK_WAITING; /* waiting */
- DEBUGDUMP(printf("waiting until %ld.%d\n", client->deadline.seconds,client->deadline.milli ););
+ DEBUGDUMP(printf("waiting until %ld.%d\n", (long) client->deadline.seconds,client->deadline.milli ););
}
}
}
@@ -1854,7 +1854,7 @@ int rxstack_process_websockets_headers(
key[end-start] = '\0';
start = strstr(ws_headers, "\r\n\r\n");
- DEBUGDUMP(printf("end of headers at %x: [%s]\n",start,start ););
+ DEBUGDUMP(printf("end of headers at %x: [%s]\n",(unsigned int) start,start ););
/*
* Generate our response key
@@ -2958,7 +2958,7 @@ int rxstack_doit( )
rc = 0 ; /* already timed out */
if ( ( rc == -1 ) || ( rc > DEFAULT_WAKEUP ) )
rc = DEFAULT_WAKEUP ;
- DEBUGDUMP(printf("), to=%d) ms at %ld,%03d\n", rc, now.seconds, now.milli ););
+ DEBUGDUMP(printf("), to=%d) ms at %ld,%03d\n", rc, (long) now.seconds, now.milli ););
#if defined(HAVE_POLL) && (defined(HAVE_POLL_H) || defined(HAVE_SYS_POLL_H))
rc = poll( pd, poll_cnt, rc ) ;
#else
@@ -2967,7 +2967,7 @@ int rxstack_doit( )
rc = select( max_sock + 1, &ready, (fd_set *)0, (fd_set *)0, &to ) ;
#endif
now = get_now( ) ;
- DEBUGDUMP(printf("****** after waiting(), rc=%d at %ld,%03d\n", rc, now.seconds, now.milli ););
+ DEBUGDUMP(printf("****** after waiting(), rc=%d at %ld,%03d\n", rc, (long) now.seconds, now.milli ););
if ( rc < 0 )
{
if ( os_errno != EINTR ) /* Win32 doesn't know about it ? */