lkml.org 
[lkml]   [2020]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 21/24] aio.7: Use perror() directly
Date
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
---
man7/aio.7 | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/man7/aio.7 b/man7/aio.7
index ff099885e..9b2c44c48 100644
--- a/man7/aio.7
+++ b/man7/aio.7
@@ -257,8 +257,6 @@ aio_return():

#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); } while (0)

-#define errMsg(msg) do { perror(msg); } while (0)
-
struct ioRequest { /* Application\-defined structure for tracking
I/O requests */
int reqNum;
@@ -390,7 +388,7 @@ main(int argc, char *argv[])
else if (s == AIO_ALLDONE)
printf("I/O all done\en");
else
- errMsg("aio_cancel");
+ perror("aio_cancel");
}
}

@@ -418,7 +416,7 @@ main(int argc, char *argv[])
printf("Canceled\en");
break;
default:
- errMsg("aio_error");
+ perror("aio_error");
break;
}

--
2.28.0
\
 
 \ /
  Last update: 2020-09-10 23:18    [W:0.594 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site