summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-03-06 05:50:10 +0000
committerJim Meyering <jim@meyering.net>2001-03-06 05:50:10 +0000
commit4813ddbf6bf64cbd457b410c761dad8be62e1b06 (patch)
treec41ce2dd3682213863778ad79278a28a7c1e9e52 /src
parent358d5342845814bdd0cdadd40ef8b853eb71472c (diff)
downloadcoreutils-4813ddbf6bf64cbd457b410c761dad8be62e1b06.tar.xz
(S_TYPEISSHM): Rename parameter to reflect its type.
(main): Pass a `struct stat *', not stat.st_mode to S_TYPEISSHM.
Diffstat (limited to 'src')
-rw-r--r--src/dd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dd.c b/src/dd.c
index 739f2a658..7d8c78b85 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -49,7 +49,7 @@
#endif
#ifndef S_TYPEISSHM
-# define S_TYPEISSHM(Mode) 0
+# define S_TYPEISSHM(Stat_ptr) 0
#endif
#define ROUND_UP_OFFSET(X, M) ((M) - 1 - (((X) + (M) - 1) % (M)))
@@ -1172,7 +1172,7 @@ main (int argc, char **argv)
if (ftruncate (STDOUT_FILENO, o) != 0
&& (S_ISREG (stdout_stat.st_mode)
|| S_ISDIR (stdout_stat.st_mode)
- || S_TYPEISSHM (stdout_stat.st_mode)))
+ || S_TYPEISSHM (&stdout_stat)))
{
char buf[LONGEST_HUMAN_READABLE + 1];
error (1, errno, _("advancing past %s bytes in output file %s"),