diff --git a/bin/wc/wc.c b/bin/wc/wc.c index 7de10d8..647238c 100644 --- a/bin/wc/wc.c +++ b/bin/wc/wc.c @@ -39,6 +39,8 @@ * Changes not related to compiler are replaced using #ifndef __GNO__ * * Added prototyped headers, surrounded by #ifndef __STDC__ + * + * $Id: wc.c,v 1.2 1997/09/26 06:27:59 gdr Exp $ */ @@ -54,7 +56,7 @@ static const char copyright[] = static const char sccsid[] = "@(#)wc.c 8.1 (Berkeley) 6/6/93"; #else static const char rcsid[] = - "$Id: wc.c,v 1.1 1997/09/17 06:31:05 gdr Exp $"; + "$Id: wc.c,v 1.2 1997/09/26 06:27:59 gdr Exp $"; #endif #endif /* not lint */ #endif @@ -86,11 +88,10 @@ void usage __P((void)); #ifndef _STDLIB_H_ #include #endif -extern void begin_stack_check(void); -extern int end_stack_check(void); +#include static void report_stack(void) { - fprintf(stderr,"\n ==> %d stack bytes used <== \n", end_stack_check()); + fprintf(stderr,"\n ==> %d stack bytes used <== \n", _endStackCheck()); } #endif @@ -109,7 +110,7 @@ main(int argc, int errors, total; #if defined(__GNO__) && defined(__STACK_CHECK__) - begin_stack_check(); + _beginStackCheck(); atexit(report_stack); #endif #ifndef __GNO__