diff options
author | Jim Meyering <jim@meyering.net> | 2001-03-06 05:50:10 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-03-06 05:50:10 +0000 |
commit | 4813ddbf6bf64cbd457b410c761dad8be62e1b06 (patch) | |
tree | c41ce2dd3682213863778ad79278a28a7c1e9e52 /src | |
parent | 358d5342845814bdd0cdadd40ef8b853eb71472c (diff) | |
download | coreutils-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"), |