diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-09-10 11:44:49 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-09-10 11:44:49 -0700 |
commit | e7fd45c7efe8dcb2c38bd518e02e20bfb8898c86 (patch) | |
tree | 3cf9e4432c983f2aa0b395afbec91edaa53cf097 /equipment.c | |
parent | e91ac60f4985667f8599d30881698e14e15fffca (diff) | |
download | subsurface-e7fd45c7efe8dcb2c38bd518e02e20bfb8898c86.tar.gz |
Change ws_info and tank_info types
This is correct C. But debuggers in C++ mode are broken and can't display
the global variables. While I hate having to do this change, I hate not
being able to debug my software because of broken tools even more.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r-- | equipment.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/equipment.c b/equipment.c index b9001a85c..0c5939ff3 100644 --- a/equipment.c +++ b/equipment.c @@ -831,7 +831,7 @@ static void record_weightsystem_changes(weightsystem_t *ws, struct ws_widget *we * we should pick up any other names from the dive * logs directly. */ -struct tank_info tank_info[100] = { +struct tank_info_t tank_info[100] = { /* Need an empty entry for the no-cylinder case */ { "", }, @@ -925,7 +925,7 @@ bad_tank_info: * We hardcode the most common weight system types * This is a bit odd as the weight system types don't usually encode weight */ -struct ws_info ws_info[100] = { +struct ws_info_t ws_info[100] = { { N_("integrated"), 0 }, { N_("belt"), 0 }, { N_("ankle"), 0 }, @@ -937,7 +937,7 @@ struct ws_info ws_info[100] = { static void fill_ws_list(GtkListStore *store) { GtkTreeIter iter; - struct ws_info *info = ws_info; + struct ws_info_t *info = ws_info; while (info->name) { gtk_list_store_append(store, &iter); |