Remove redundant declarations to allow building with -Wredundant-decls.

git-svn-id: svn://svn.berlios.de/openocd/trunk@1560 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
zwelch
2009-04-29 01:43:01 +00:00
parent 55c39bae67
commit 1de959ca1c
18 changed files with 5 additions and 40 deletions
-1
View File
@@ -43,7 +43,6 @@
#include <errno.h>
#include <ctype.h>
int fileio_close(fileio_t *fileio);
int fileio_dispatch_read(fileio_t *fileio, u32 size, u8 *buffer, u32 *size_read);
int fileio_open_local(fileio_t *fileio)
+1 -1
View File
@@ -11979,7 +11979,7 @@ static int Jim_EnvCoreCommand(Jim_Interp *interp, int argc,
if (argc == 1) {
#ifndef _WIN32
#if !defined(_WIN32) && !defined(__USE_GNU)
extern char **environ;
#endif
+1
View File
@@ -64,6 +64,7 @@ void *fill_malloc(size_t size)
return t;
}
#define IN_REPLACEMENTS_C
#include "replacements.h"
#include <stdio.h>
+2
View File
@@ -103,9 +103,11 @@ struct timezone;
extern int gettimeofday(struct timeval *tv, struct timezone *tz);
#endif
#ifndef IN_REPLACEMENTS_C
/**** clear_malloc & fill_malloc ****/
void *clear_malloc(size_t size);
void *fill_malloc(size_t size);
#endif
/*
* Now you have 3 ways for the malloc function:
-3
View File
@@ -33,9 +33,6 @@
#include <stdlib.h>
int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *y);
int timeval_add(struct timeval *result, struct timeval *x, struct timeval *y);
int timeval_add_time(struct timeval *result, int sec, int usec);
/* calculate difference between two struct timeval values */
int timeval_subtract(struct timeval *result, struct timeval *x, struct timeval *y)