Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authoreutarass2010-09-13 21:19:18 +0000
committereutarass2010-09-13 21:19:18 +0000
commitf52c380ebfd52925fd739b60d96f15b61bdbc231 (patch)
treec0c70a7c3d4b013ccc34e22c001cf13b08be92b6 /main
parent3ef25fd86cf484c139af59ac9dcc74aface7c987 (diff)
downloadorg.eclipse.tcf.agent-f52c380ebfd52925fd739b60d96f15b61bdbc231.tar.gz
org.eclipse.tcf.agent-f52c380ebfd52925fd739b60d96f15b61bdbc231.tar.xz
org.eclipse.tcf.agent-f52c380ebfd52925fd739b60d96f15b61bdbc231.zip
TCF Agent: Fixed: compilation errors when compiled as C++ on Windows. Added testing of binaries built with MS Windows C++ compiler.
Diffstat (limited to 'main')
-rw-r--r--main/cmdline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/cmdline.c b/main/cmdline.c
index 2d61e785..f45f5ba5 100644
--- a/main/cmdline.c
+++ b/main/cmdline.c
@@ -36,7 +36,7 @@
#include <framework/plugins.h>
#include <main/cmdline.h>
-struct cmd {
+struct CmdDesc {
char * cmd;
char * help;
int (*hnd)(char *);
@@ -56,7 +56,7 @@ static char * cmdline_string;
static pthread_mutex_t cmdline_mutex;
static pthread_cond_t cmdline_signal;
static pthread_t command_thread;
-static struct cmd * cmds = NULL;
+static struct CmdDesc * cmds = NULL;
static size_t cmd_count = 0;
typedef void (*PluginCallBack)(Channel *);
@@ -403,7 +403,7 @@ static int add_cmdline_cmd(const char * cmd_name, const char * cmd_desc,
if (!strcmp(cmd_name, cmds[i].cmd))
return -EEXIST;
- cmds = (struct cmd *)loc_realloc(cmds, ++cmd_count * sizeof(struct cmd));
+ cmds = (struct CmdDesc *)loc_realloc(cmds, ++cmd_count * sizeof(struct CmdDesc));
cmds[cmd_count-1].cmd = loc_strdup(cmd_name);
cmds[cmd_count-1].help = loc_strdup(cmd_desc);

Back to the top