summaryrefslogtreecommitdiff
path: root/src/dd.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-04-09 06:16:14 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-04-09 06:16:14 +0000
commit8ae46b55b45128864d00a59f88498ca52dd6c184 (patch)
treebc927f3f92e12132e51974402a54ab12bfb68bd1 /src/dd.c
parentc69ead65965cd116631c9fd1a155c002de542937 (diff)
downloadcoreutils-8ae46b55b45128864d00a59f88498ca52dd6c184.tar.xz
(iread, iwrite): Use char * buffer, not void *, so we can do pointer
arithmetic on it.
Diffstat (limited to 'src/dd.c')
-rw-r--r--src/dd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dd.c b/src/dd.c
index 906dc513e..6083a73c9 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -698,7 +698,7 @@ process_signals (void)
bytes read if successful, -1 (setting errno) on failure. */
static ssize_t
-iread (int fd, void *buf, size_t size)
+iread (int fd, char *buf, size_t size)
{
for (;;)
{
@@ -716,7 +716,7 @@ iread (int fd, void *buf, size_t size)
writes. */
static size_t
-iwrite (int fd, void const *buf, size_t size)
+iwrite (int fd, char const *buf, size_t size)
{
size_t total_written = 0;