Modified to include the appropriate header file rather than (badly)
authordtrg <none@none>
Wed, 26 Jul 2006 12:28:56 +0000 (12:28 +0000)
committerdtrg <none@none>
Wed, 26 Jul 2006 12:28:56 +0000 (12:28 +0000)
prototyping syscalls itself.

util/ack/ack.h
util/ack/main.c
util/ack/run.c
util/opt/lookup.c

index ede0df5..0877a8c 100644 (file)
@@ -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();
index 009ad55..82c1888 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include "ack.h"
 #include "list.h"
 #include "trans.h"
index bbc3820..8d0481a 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <stdlib.h>
+#include <string.h>
 #include "ack.h"
 #include "list.h"
 #include "trans.h"
index dbe3f42..8cda8e5 100644 (file)
@@ -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;