diff options
author | Jim Meyering <jim@meyering.net> | 1995-05-20 11:47:31 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-05-20 11:47:31 +0000 |
commit | 4c9e84124c8f22ec8be7b793052a4bdd20a560ca (patch) | |
tree | 3170c6f52f1b39e89523b542ee243a53c38f03c6 | |
parent | 0753cff4a1c7503a54da26e3a179e25cdb54db26 (diff) | |
download | coreutils-4c9e84124c8f22ec8be7b793052a4bdd20a560ca.tar.xz |
[CLOSED, ENDLIST]: Don't cast constants to FILE pointers.
Instead, declare two FILE structs and use their addresses.
-rw-r--r-- | src/paste.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/paste.c b/src/paste.c index 69b2815f1..cc7442caf 100644 --- a/src/paste.c +++ b/src/paste.c @@ -58,11 +58,13 @@ static void usage (); /* Indicates that no delimiter should be added in the current position. */ #define EMPTY_DELIM '\0' +static FILE dummy_closed; /* Element marking a file that has reached EOF and been closed. */ -#define CLOSED ((FILE *) -1) +#define CLOSED (&dummy_closed) +static FILE dummy_endlist; /* Element marking end of list of open files. */ -#define ENDLIST ((FILE *) -2) +#define ENDLIST (&dummy_endlist) /* Name this program was run with. */ char *program_name; |