Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/gtk-rig-ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
#include <build-config.h>
#endif

#define _GNU_SOURCE
#include <string.h> /* strcasestr */
#include <string.h>

#include <gdk/gdkkeysyms.h>
#include <glib.h>
Expand Down Expand Up @@ -1066,7 +1065,7 @@ static void filter_text_changed_cb(GtkSearchEntry *entry, gpointer data)
for (i = 0; i < n; i++)
{
sat = SAT(g_slist_nth_data(ctrl->sats, i));
if (sat && strcasestr(sat->nickname, filter))
if (sat && gpredict_strcasestr(sat->nickname, filter))
{
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(ctrl->SatSel),
sat->nickname);
Expand Down
6 changes: 2 additions & 4 deletions src/gtk-rot-ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
#include <build-config.h>
#endif

#define _GNU_SOURCE /* needed for strcasestr */

/* NETWORK */
#ifndef WIN32
#include <arpa/inet.h> /* htons() */
Expand All @@ -50,7 +48,7 @@
#include <gtk/gtk.h>
#include <math.h>

#include <string.h> /* strerror, strcasestr */
#include <string.h> /* strerror */

#include "compat.h"
#include "gpredict-utils.h"
Expand Down Expand Up @@ -733,7 +731,7 @@ static void filter_text_changed_cb(GtkSearchEntry *entry, gpointer data)
for (i = 0; i < n; i++)
{
sat = SAT(g_slist_nth_data(ctrl->sats, i));
if (sat && strcasestr(sat->nickname, filter))
if (sat && gpredict_strcasestr(sat->nickname, filter))
{
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(ctrl->SatSel),
sat->nickname);
Expand Down
3 changes: 0 additions & 3 deletions src/gtk-sat-selector.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
along with this program; if not, visit http://www.fsf.org/
*/

/* need _gnu_source to have strcasestr defined */
#define _GNU_SOURCE

#ifdef HAVE_CONFIG_H
#include <build-config.h>
#endif
Expand Down
Loading