]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(make_blank): Add an explicit cast to `unsigned char *'
authorJim Meyering <jim@meyering.net>
Tue, 29 Feb 2000 07:32:23 +0000 (07:32 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 29 Feb 2000 07:32:23 +0000 (07:32 +0000)
to placate HPUX's C compiler.  Reported by Bob Proulx.

src/join.c

index 7b24dc20e1e962e575f2203fd38b27f6853c572c..5fd02c60f8cb17980f7696bf70932b0ee3d06bf3 100644 (file)
@@ -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++)