$OpenBSD: patch-rxstack_c,v 1.1.1.1 2018/05/07 17:55:20 bcallah Exp $

Fix formatting.

Index: rxstack.c
--- rxstack.c.orig
+++ rxstack.c
@@ -1575,7 +1575,7 @@ int rxstack_pull_line_off_queue( Client *client, stren
             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 %lld.%d\n", client->deadline.seconds,client->deadline.milli ););
          }
       }
    }
@@ -1854,7 +1854,7 @@ int rxstack_process_websockets_headers( Client *client
    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 %s: [%s]\n",start,start ););
 
    /*
     * Generate our response key
@@ -1906,11 +1906,11 @@ int decode_ws_payload( unsigned char *src, size_t srcl
       // Find beginning of next frame. First time hdr_length, masked and
       // payload_length are zero
       frame += hdr_length + 4*masked + payload_length;
-      DEBUGDUMP(printf("frame[0..3]: 0x%x 0x%x 0x%x 0x%x (tot: %d)\n",(unsigned char) frame[0],(unsigned char) frame[1],(unsigned char) frame[2],(unsigned char) frame[3], srclength););
+      DEBUGDUMP(printf("frame[0..3]: 0x%x 0x%x 0x%x 0x%x (tot: %zu)\n",(unsigned char) frame[0],(unsigned char) frame[1],(unsigned char) frame[2],(unsigned char) frame[3], srclength););
 
       if (frame > src + srclength)
       {
-         DEBUGDUMP(printf("Truncated frame from client, need %d more bytes\n",frame - (src + srclength)););
+         DEBUGDUMP(printf("Truncated frame from client, need %ld more bytes\n",frame - (src + srclength)););
          break;
       }
       remaining = (src + srclength) - frame;
@@ -1950,7 +1950,7 @@ int decode_ws_payload( unsigned char *src, size_t srcl
       {
          continue;
       }
-      DEBUGDUMP(printf("    payload_length: %u, raw remaining: %u, , hdr_length: %d, opcode %d\n",payload_length, remaining,hdr_length, *opcode););
+      DEBUGDUMP(printf("    payload_length: %u, raw remaining: %zu, , hdr_length: %d, opcode %d\n",payload_length, remaining,hdr_length, *opcode););
       payload = frame + hdr_length + 4*masked;
 
       if (*opcode != 1 && *opcode != 2)
@@ -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 %lld,%03d\n", rc, 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 %lld,%03d\n", rc, now.seconds, now.milli ););
       if ( rc < 0 )
       {
          if ( os_errno != EINTR ) /* Win32 doesn't know about it ? */
