Skip to content

Commit 284e3a5

Browse files
committed
Fix too modern syntax
1 parent 6e9b1b5 commit 284e3a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

signal_handler.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,12 @@ send_msg_by_parts(shm_mq_handle *mqh, Size nbytes, const void *data)
156156
{
157157
int bytes_left;
158158
int bytes_send;
159+
int offset;
159160

160161
/* Send the expected message length */
161162
shm_mq_send(mqh, sizeof(int), &nbytes, false);
162163

163-
for (int offset = 0; offset < nbytes; offset += bytes_send)
164+
for (offset = 0; offset < nbytes; offset += bytes_send)
164165
{
165166
bytes_left = nbytes - offset;
166167
bytes_send = (bytes_left < MSG_MAX_SIZE) ? bytes_left : MSG_MAX_SIZE;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy