Hi

Convert goto to do-while loop.

-Angus

diff --git a/lcr/uic.c b/lcr/uic.c
index 9e2688e..608e3d2 100755
--- a/lcr/uic.c
+++ b/lcr/uic.c
@@ -126,11 +126,10 @@ static int uic_msg_send (int fd, void *msg)
        msg_send.msg_accrightslen = 0;
 #endif

-       retry_send:
-       send_res = sendmsg (fd, &msg_send, 0);
-       if (send_res == -1 && errno == EINTR) {
-                goto retry_send;
-        }
+       do {
+               send_res = sendmsg (fd, &msg_send, 0);
+       } while (send_res == -1 && errno == EINTR);
+
        if (send_res == -1) {
                res = -errno;
        } else {
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to