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:
@@ -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
@@ -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
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@ void *fill_malloc(size_t size)
|
||||
return t;
|
||||
}
|
||||
|
||||
#define IN_REPLACEMENTS_C
|
||||
#include "replacements.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user