diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-14 01:35:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-14 01:35:13 +0000 |
commit | 2e5c54935b8cbeac6a7dea3c2fe5077588216b9a (patch) | |
tree | b1724e1c72404ed9bbeec9f72b07fc1ecc7c819f /ui/gtk | |
parent | 6a37db92d100394ec3841e3b706f8b89f28fde02 (diff) |
In a source file that defines external functions, the header file that
declares the functions must be included, in order to make sure the
declarations match the function signature. Make it so.
Don't cast away constness when passing something to a routine that takes
a const pointer argument.
svn path=/trunk/; revision=54747
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/stats_tree_stat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/gtk/stats_tree_stat.c b/ui/gtk/stats_tree_stat.c index 2cb38895f8..c337ae9af2 100644 --- a/ui/gtk/stats_tree_stat.c +++ b/ui/gtk/stats_tree_stat.c @@ -53,6 +53,8 @@ #include "ui/gtk/old-gtk-compat.h" +#include "ui/gtk/gui_stat_menu.h" + #ifdef _WIN32 #define USE_WIN32_FILE_DIALOGS #endif @@ -426,7 +428,7 @@ init_gtk_tree(const char* opt_arg, void *userdata _U_) if (init_strlen == strlen(opt_arg)) { st = stats_tree_new(cfg,pr,NULL); } else { - st = stats_tree_new(cfg,pr,(char*)opt_arg+init_strlen+1); + st = stats_tree_new(cfg,pr,opt_arg+init_strlen+1); } } else { |