Fix some of the warnings when compiling with -Wstrict-prototypes
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 18 Jan 2004 15:53:43 +0000 (15:53 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 18 Jan 2004 15:53:43 +0000 (15:53 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9720 f5534014-38df-0310-8fa8-9805f1628bb7

tools/lemon/lemon.c

index 4b845f236467de108a9d8d4ea6286cc01b3673da..19c35f9dd9bd80962b57fa029e48cec15a931005 100644 (file)
@@ -25,7 +25,7 @@
 **   drh@acm.org
 **   http://www.hwaci.com/drh/
 **
-** $Id: lemon.c,v 1.15 2003/12/21 00:16:54 ulfl Exp $
+** $Id: lemon.c,v 1.16 2004/01/18 15:53:43 jmayer Exp $
 */
 #include <stdio.h>
 #include <stdarg.h>
@@ -224,8 +224,8 @@ struct lemon {
   char *argv0;             /* Name of the program */
 };
 
+void memory_error(void);
 #define MemoryCheck(X) if((X)==0){ \
-  extern void memory_error(void); \
   memory_error(); \
 }
 
@@ -2569,7 +2569,6 @@ PRIVATE char *pathsearch(char *argv0, char *name, int modemask)
     if( path ) sprintf(path,"%s/%s",argv0,name);
     *cp = c;
   }else{
-    extern char *getenv();
     pathlist = getenv("PATH");
     if( pathlist==0 ) pathlist = ".:/bin:/usr/bin";
     path = (char *)malloc( strlen(pathlist)+strlen(name)+2 );
@@ -3310,7 +3309,6 @@ char *SetNew(void){
   int i;
   s = (char*)malloc( size );
   if( s==0 ){
-    extern void memory_error();
     memory_error();
   }
   for(i=0; i<size; i++) s[i] = 0;