[prev in list] [next in list] [prev in thread] [next in thread] 

List:       monetdb-checkins
Subject:    MonetDB: Jul2021 - Don't use declaration right after a label.
From:       Sjoerd_Mullender <commits+sjoerd=acm.org () monetdb ! org>
Date:       2022-06-24 7:08:43
Message-ID: hg.4e6640771b61.1656054523.-7650225802845058793 () dev ! monetdb ! org
[Download RAW message or body]

Changeset: 4e6640771b61 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/4e6640771b61
Modified Files:
	tools/merovingian/daemon/merovingian.c
Branch: Jul2021
Log Message:

Don't use declaration right after a label.


diffs (14 lines):

diff --git a/tools/merovingian/daemon/merovingian.c b/tools/merovingian/daemon/merovingian.c
--- a/tools/merovingian/daemon/merovingian.c
+++ b/tools/merovingian/daemon/merovingian.c
@@ -144,8 +144,9 @@ logFD(dpair dp, int fd, const char *type
 	assert(fd == 0 || fd == 1);
 	do {
 		do {
+			ssize_t n;
 		  repeat:
-			ssize_t n = read(dp->input[fd].fd, buf + len, sizeof(buf) - len - 1);
+			n = read(dp->input[fd].fd, buf + len, sizeof(buf) - len - 1);
 			if (n <= 0)
 				break;
 			len += n;
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-leave@monetdb.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic