public inbox for [email protected]
 help / color / mirror / Atom feed
From: liming wu <[email protected]>
To: [email protected]
Subject: delete unneeded int-type
Date: Fri, 29 Nov 2019 16:19:55 +0800	[thread overview]
Message-ID: <CAPnMXWW=cV_H2xs=r21DOuhfKWcCaxgG2iXR9LaExuRMNGUvpA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 933 bytes --]

Hi

It can't buid successfully except use c99.


Subject: [PATCH] delete unneede int-type

---
 test/accept-link.c | 2 +-
 test/poll-link.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/accept-link.c b/test/accept-link.c
index 2fbc12e..91dbc2b 100644
--- a/test/accept-link.c
+++ b/test/accept-link.c
@@ -131,7 +131,7 @@ void *recv_thread(void *arg)

        assert(io_uring_submit(&ring) == 2);

-       for (int i = 0; i < 2; i++) {
+       for (i = 0; i < 2; i++) {
                struct io_uring_cqe *cqe;
                int idx;

diff --git a/test/poll-link.c b/test/poll-link.c
index 3cc2ca7..abddb71 100644
--- a/test/poll-link.c
+++ b/test/poll-link.c
@@ -127,7 +127,7 @@ void *recv_thread(void *arg)

        assert(io_uring_submit(&ring) == 2);

-       for (int i = 0; i < 2; i++) {
+       for (i = 0; i < 2; i++) {
                struct io_uring_cqe *cqe;
                int idx;

--

[-- Attachment #2: delete-unneede-int-type.patch --]
[-- Type: application/octet-stream, Size: 958 bytes --]

From 83014e713e07d34d0674e77107917414fc5e78d6 Mon Sep 17 00:00:00 2001
From: LimingWu <[email protected]>
Date: Fri, 29 Nov 2019 15:49:15 +0800
Subject: [PATCH] delete unneede int-type

---
 test/accept-link.c | 2 +-
 test/poll-link.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/accept-link.c b/test/accept-link.c
index 2fbc12e..91dbc2b 100644
--- a/test/accept-link.c
+++ b/test/accept-link.c
@@ -131,7 +131,7 @@ void *recv_thread(void *arg)
 
 	assert(io_uring_submit(&ring) == 2);
 
-	for (int i = 0; i < 2; i++) {
+	for (i = 0; i < 2; i++) {
 		struct io_uring_cqe *cqe;
 		int idx;
 
diff --git a/test/poll-link.c b/test/poll-link.c
index 3cc2ca7..abddb71 100644
--- a/test/poll-link.c
+++ b/test/poll-link.c
@@ -127,7 +127,7 @@ void *recv_thread(void *arg)
 
 	assert(io_uring_submit(&ring) == 2);
 
-	for (int i = 0; i < 2; i++) {
+	for (i = 0; i < 2; i++) {
 		struct io_uring_cqe *cqe;
 		int idx;
 
-- 
1.8.3.1


             reply	other threads:[~2019-11-29  8:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-29  8:19 liming wu [this message]
2019-11-29  8:25 ` delete unneeded int-type Jackie Liu
2019-11-29 17:21   ` Jens Axboe
2019-11-29 17:18 ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPnMXWW=cV_H2xs=r21DOuhfKWcCaxgG2iXR9LaExuRMNGUvpA@mail.gmail.com' \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox