- remove build warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@348 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
3d6bcf0792
commit
5279d519f8
src
|
@ -36,7 +36,6 @@ static char** config_file_names;
|
||||||
static size_t num_script_dirs;
|
static size_t num_script_dirs;
|
||||||
static char** script_search_dirs;
|
static char** script_search_dirs;
|
||||||
|
|
||||||
|
|
||||||
void add_script_search_dir (const char *dir)
|
void add_script_search_dir (const char *dir)
|
||||||
{
|
{
|
||||||
num_script_dirs++;
|
num_script_dirs++;
|
||||||
|
@ -87,7 +86,6 @@ FILE *open_file_from_path (command_context_t *cmd_ctx, char *file, char *mode)
|
||||||
int parse_config_file(struct command_context_s *cmd_ctx)
|
int parse_config_file(struct command_context_s *cmd_ctx)
|
||||||
{
|
{
|
||||||
char **cfg;
|
char **cfg;
|
||||||
FILE *config_file;
|
|
||||||
|
|
||||||
if (!config_file_names)
|
if (!config_file_names)
|
||||||
add_config_file_name ("script openocd.cfg");
|
add_config_file_name ("script openocd.cfg");
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
|
|
||||||
extern int parse_cmdline_args(struct command_context_s *cmd_ctx, int argc, char *argv[]);
|
extern int parse_cmdline_args(struct command_context_s *cmd_ctx, int argc, char *argv[]);
|
||||||
extern int parse_config_file(struct command_context_s *cmd_ctx);
|
extern int parse_config_file(struct command_context_s *cmd_ctx);
|
||||||
|
extern void add_config_file_name (const char *cfg);
|
||||||
|
extern void add_script_search_dir (const char *dir);
|
||||||
extern int configuration_output_handler(struct command_context_s *context, char* line);
|
extern int configuration_output_handler(struct command_context_s *context, char* line);
|
||||||
extern FILE *open_file_from_path (command_context_t *cmd_ctx, char *file, char *mode);
|
extern FILE *open_file_from_path (command_context_t *cmd_ctx, char *file, char *mode);
|
||||||
|
|
||||||
|
|
|
@ -197,7 +197,7 @@ int log_remove_callback(log_callback_fn fn, void *priv)
|
||||||
{
|
{
|
||||||
log_callback_t *cb, **p;
|
log_callback_t *cb, **p;
|
||||||
|
|
||||||
for (p = &log_callbacks; cb = *p; p = &(*p)->next)
|
for (p = &log_callbacks; (cb = *p); p = &(*p)->next)
|
||||||
{
|
{
|
||||||
if (cb->fn == fn && cb->priv == priv)
|
if (cb->fn == fn && cb->priv == priv)
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
static int help_flag;
|
static int help_flag;
|
||||||
|
|
||||||
static struct option long_options[] =
|
static struct option long_options[] =
|
||||||
|
@ -47,8 +46,6 @@ static struct option long_options[] =
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int configuration_output_handler(struct command_context_s *context, char* line)
|
int configuration_output_handler(struct command_context_s *context, char* line)
|
||||||
{
|
{
|
||||||
INFO(line);
|
INFO(line);
|
||||||
|
@ -56,7 +53,6 @@ int configuration_output_handler(struct command_context_s *context, char* line)
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int parse_cmdline_args(struct command_context_s *cmd_ctx, int argc, char *argv[])
|
int parse_cmdline_args(struct command_context_s *cmd_ctx, int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
|
|
|
@ -1351,7 +1351,7 @@ int jtag_interface_init(struct command_context_s *cmd_ctx)
|
||||||
|
|
||||||
int jtag_init(struct command_context_s *cmd_ctx)
|
int jtag_init(struct command_context_s *cmd_ctx)
|
||||||
{
|
{
|
||||||
int i, validate_tries = 0;
|
int validate_tries = 0;
|
||||||
jtag_device_t *device;
|
jtag_device_t *device;
|
||||||
|
|
||||||
DEBUG("-");
|
DEBUG("-");
|
||||||
|
|
|
@ -88,7 +88,7 @@ int remove_connection(service_t *service, connection_t *connection)
|
||||||
connection_t *c;
|
connection_t *c;
|
||||||
|
|
||||||
/* find connection */
|
/* find connection */
|
||||||
while(c = *p)
|
while((c = *p))
|
||||||
{
|
{
|
||||||
if (c->fd == connection->fd)
|
if (c->fd == connection->fd)
|
||||||
{
|
{
|
||||||
|
@ -170,7 +170,7 @@ int remove_service(unsigned short port)
|
||||||
service_t *c;
|
service_t *c;
|
||||||
|
|
||||||
/* find service */
|
/* find service */
|
||||||
while(c = *p)
|
while((c = *p))
|
||||||
{
|
{
|
||||||
if (c->port == port)
|
if (c->port == port)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue