diff options
author | Jim Meyering <jim@meyering.net> | 2000-02-29 07:32:23 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-02-29 07:32:23 +0000 |
commit | 747c6d4b60d15c8de102ffb228636597cb5cfe89 (patch) | |
tree | 2eb05db24e6ba1392e66f973b3b752db857a3a51 | |
parent | d29f838428a67453dc0bb1f087ff2fb66e50958d (diff) | |
download | coreutils-747c6d4b60d15c8de102ffb228636597cb5cfe89.tar.xz |
(make_blank): Add an explicit cast to `unsigned char *'
to placate HPUX's C compiler. Reported by Bob Proulx.
-rw-r--r-- | src/join.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/join.c b/src/join.c index 7b24dc20e..5fd02c60f 100644 --- a/src/join.c +++ b/src/join.c @@ -1,5 +1,5 @@ /* join - join lines of two files on a common field - Copyright (C) 91, 1995-1999 Free Software Foundation, Inc. + Copyright (C) 91, 1995-2000 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -708,11 +708,12 @@ void make_blank (struct line *blank, int count) { int i; - char *buffer; + unsigned char *buffer; struct field *fields; blank->nfields = count; blank->buf.size = blank->buf.length = count + 1; - blank->buf.buffer = buffer = xmalloc (blank->buf.size); + blank->buf.buffer = xmalloc (blank->buf.size); + buffer = (unsigned char *) blank->buf.buffer; blank->fields = fields = (struct field *) xmalloc (sizeof (struct field) * count); for (i = 0; i < count; i++) |