Skip to content

Commit

Permalink
Add a few consts to fix some compiler (GCC) errors.
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=46849
  • Loading branch information
Bill Meier committed Dec 29, 2012
1 parent 1a97d33 commit 7dfa337
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion capture_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ sync_pipe_run_command(const char** argv, gchar **data, gchar **primary_msg,
}

int
sync_interface_set_80211_chan(gchar *iface, char *freq, gchar *type,
sync_interface_set_80211_chan(const gchar *iface, const char *freq, const gchar *type,
gchar **data, gchar **primary_msg,
gchar **secondary_msg)
{
Expand Down
2 changes: 1 addition & 1 deletion capture_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ sync_pipe_kill(int fork_child);

/** Set wireless channel using dumpcap */
extern int
sync_interface_set_80211_chan(gchar *iface, char *freq, gchar *type,
sync_interface_set_80211_chan(const gchar *iface, const char *freq, const gchar *type,
gchar **data, gchar **primary_msg,
gchar **secondary_msg);

Expand Down
3 changes: 2 additions & 1 deletion ui/gtk/main_80211_toolbar.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ int get_selected_channel_type(void)
static int
tb80211_do_set_channel(char *iface, int freq, int type)
{
gchar *freq_s, *type_s;
gchar *freq_s;
const gchar *type_s;
gchar *data, *primary_msg, *secondary_msg;
int ret;

Expand Down
4 changes: 2 additions & 2 deletions ws80211_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ ws80211_str_to_chan_type(const gchar *s)
return ret;
}

gchar
const gchar
*ws80211_chan_type_to_str(int type)
{
switch (type) {
Expand Down Expand Up @@ -701,7 +701,7 @@ int ws80211_str_to_chan_type(const gchar *s _U_)
return -1;
}

gchar *ws80211_chan_type_to_str(int type _U_)
const gchar *ws80211_chan_type_to_str(int type _U_)
{
return NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion ws80211_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ void ws80211_free_interfaces(GArray *interfaces);
int ws80211_frequency_to_channel(int freq);
int ws80211_set_freq(const char *name, int freq, int chan_type);
int ws80211_str_to_chan_type(const gchar *s);
gchar *ws80211_chan_type_to_str(int type);
const gchar *ws80211_chan_type_to_str(int type);

#endif /* __WS80211_UTILS_H__ */

0 comments on commit 7dfa337

Please sign in to comment.