You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/mbrowse/files/mbrowse-0.4.3-fno-common.patch

30 lines
611 B

--- a/src/interface.h
+++ b/src/interface.h
@@ -9,12 +9,14 @@
GtkAccelGroup *accels;
} main_widgets_t;
-struct menu_items {
+typedef struct menu_items {
char *item;
GtkSignalFunc func;
gpointer data;
GtkWidget *mi;
-};
+} menu_items;
+
+extern struct menu_items bookmark_items[128];
void set_hostname(const char *host);
void set_oid(const char *oid);
--- a/src/bookmarks.c
+++ b/src/bookmarks.c
@@ -27,7 +27,6 @@
static GtkWidget *bkdial;
int delete = 0;
-struct menu_items bookmark_items[128];
static GtkWidget* create_bookmark_dialogue(void);
static void mark_for_delete(void) {