Re: delete unneeded int-type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/29/19 12:25 AM, Jackie Liu wrote:
2019年11月29日 16:19,liming wu <wu860403@xxxxxxxxx> 写道:

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;

--
<delete-unneede-int-type.patch>

I think it would be better for you to send patches using git send-email
instead of using attachments.

Yeah, this one is small enough that I just hand apply it, but the
patches are clearly mangled.

--
Jens Axboe




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux