Skip to contentSkip to conversation

fsx: Add a return type to aio_rw

PATCH In review Vyacheslav Yurkov 2 participants 2 messages Sep 27, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsx: Add a return type to aio_rw

From: Khem Raj <[email protected]>

Compilers complain about the function prototype otherwise

---
 ltp/fsx.c | 1 +
 1 file changed, 1 insertion(+)
ltp/fsx.c +1 -0
index ccb382e7..a30e2a8d 100644
@@ -2592,6 +2592,7 @@ out_error:
 	return -1;
 }
 #else
+int
 aio_rw(int rw, int fd, char *buf, unsigned len, unsigned offset)
 {
 	fprintf(stderr, "io_rw: need AIO support!\n");
Signature · 1 line
2.35.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Vyacheslav Yurkov

From: Khem Raj <[email protected]>

Compilers complain about the function prototype otherwise

Whoooops, good catch!

--D

Quoted 19 lines
---
 ltp/fsx.c | 1 +
 1 file changed, 1 insertion(+)
ltp/fsx.c +1 -0
index ccb382e7..a30e2a8d 100644
@@ -2592,6 +2592,7 @@ out_error:
 	return -1;
 }
 #else
+int
 aio_rw(int rw, int fd, char *buf, unsigned len, unsigned offset)
 {
 	fprintf(stderr, "io_rw: need AIO support!\n");
Signature · 1 line
2.35.1