]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(delseq, freeline): Don't apply cast to argument of free.
authorJim Meyering <jim@meyering.net>
Tue, 13 May 2003 14:38:18 +0000 (14:38 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 13 May 2003 14:38:18 +0000 (14:38 +0000)
src/join.c

index 8d3b95db03f8a208475cc97bd5806e0312afa6c4..668c34b60281bc03edf9314e7a8b31ed57ab965f 100644 (file)
@@ -277,7 +277,7 @@ get_line (FILE *fp, struct line *line)
 static void
 freeline (struct line *line)
 {
-  free ((char *) line->fields);
+  free (line->fields);
   free (line->buf.buffer);
   line->buf.buffer = NULL;
 }
@@ -317,7 +317,7 @@ delseq (struct seq *seq)
   for (i = 0; i < seq->count; i++)
     if (seq->lines[i].buf.buffer)
       freeline (&seq->lines[i]);
-  free ((char *) seq->lines);
+  free (seq->lines);
 }
 
 /* Return <0 if the join field in LINE1 compares less than the one in LINE2;