From: dtrg Date: Wed, 26 Jul 2006 12:28:56 +0000 (+0000) Subject: Modified to include the appropriate header file rather than (badly) X-Git-Tag: release-6-0-pre-1~70 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=dc5d08b2a39891e70fbf201695b7bd8d2c7a7e41;p=ack.git Modified to include the appropriate header file rather than (badly) prototyping syscalls itself. --- diff --git a/util/ack/ack.h b/util/ack/ack.h index ede0df5a7..0877a8c0d 100644 --- a/util/ack/ack.h +++ b/util/ack/ack.h @@ -64,18 +64,6 @@ typedef struct { /* Return values of setpath() */ enum f_path { F_OK, F_NOMATCH, F_NOPATH } ; -/* Library routines */ - -extern char *strchr(); -extern char *strrchr(); -extern char *strcpy(); -extern char *strcat(); -extern int getpid(); -extern int unlink(); -extern int close(); -extern int open(); -extern int creat(); - /* Own routines */ enum f_path getpath(); enum f_path scan_end(); diff --git a/util/ack/main.c b/util/ack/main.c index 009ad5586..82c18888e 100644 --- a/util/ack/main.c +++ b/util/ack/main.c @@ -6,6 +6,7 @@ #include #include +#include #include "ack.h" #include "list.h" #include "trans.h" diff --git a/util/ack/run.c b/util/ack/run.c index bbc3820d4..8d0481a58 100644 --- a/util/ack/run.c +++ b/util/ack/run.c @@ -5,6 +5,7 @@ */ #include +#include #include "ack.h" #include "list.h" #include "trans.h" diff --git a/util/opt/lookup.c b/util/opt/lookup.c index dbe3f4267..8cda8e518 100644 --- a/util/opt/lookup.c +++ b/util/opt/lookup.c @@ -18,8 +18,6 @@ static char rcsid[] = "$Id$"; * Author: Hans van Staveren */ -extern char *strncpy(); - unsigned hash(string) char *string; { register char *p; register unsigned i,sum;