Dont use an internal function called warn it clashes with libc.

Allows ELF compile.
This commit is contained in:
Søren Schmidt 1997-08-29 16:14:20 +00:00
parent a885d9dcf9
commit cf302734e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28905
3 changed files with 5 additions and 11 deletions

View File

@ -9,12 +9,12 @@
* Kristoffer Eriksson <ske@pkmab.se>
*/
/* $Id$ */
/* $Id: match.S,v 1.5 1997/02/22 15:45:59 peter Exp $ */
/* Preprocess with -DNO_UNDERLINE if your C compiler does not prefix
* external symbols with an underline character '_'.
*/
#ifdef NO_UNDERLINE
#ifdef __ELF__ /* NO_UNDERLINE */
# define _prev prev
# define _window window
# define _match_start match_start

View File

@ -59,7 +59,7 @@
#include "gzip.h"
#ifdef RCSID
static char rcsid[] = "$Id$";
static char rcsid[] = "$Id: trees.c,v 1.6 1997/02/22 15:46:01 peter Exp $";
#endif
/* ===========================================================================
@ -1070,6 +1070,6 @@ local void set_file_type()
while (n < LITERALS) bin_freq += dyn_ltree[n++].Freq;
*file_type = bin_freq > (ascii_freq >> 2) ? BINARY : ASCII;
if (*file_type == BINARY && translate_eol) {
warn("-l used on binary file", "");
WARN((stderr, "-l used on binary file", ""));
}
}

View File

@ -5,7 +5,7 @@
*/
#ifdef RCSID
static char rcsid[] = "$Id$";
static char rcsid[] = "$Id: util.c,v 1.6 1997/02/22 15:46:10 peter Exp $";
#endif
#include <ctype.h>
@ -340,12 +340,6 @@ void error(m)
abort_gzip();
}
void warn(a, b)
char *a, *b; /* message strings juxtaposed in output */
{
WARN((stderr, "%s: %s: warning: %s%s\n", progname, ifname, a, b));
}
void read_error()
{
fprintf(stderr, "\n%s: ", progname);