diff options
author | olivierd <olivierd@FreeBSD.org> | 2013-08-03 01:34:39 +0800 |
---|---|---|
committer | olivierd <olivierd@FreeBSD.org> | 2013-08-03 01:34:39 +0800 |
commit | 610933966b529819fc1c788ed406b75888302d0e (patch) | |
tree | e80c48b13cf08296f0c4422f11b65ac69175e98c /science | |
parent | fb19d82243caefd1c0db50ed24c96510fcc5d248 (diff) | |
download | freebsd-ports-gnome-610933966b529819fc1c788ed406b75888302d0e.tar.gz freebsd-ports-gnome-610933966b529819fc1c788ed406b75888302d0e.tar.zst freebsd-ports-gnome-610933966b529819fc1c788ed406b75888302d0e.zip |
Unbreak with clang
Submitted by: Roman Cat <roman-cat@yandex.ru> (private email)
Diffstat (limited to 'science')
-rw-r--r-- | science/xfce4-equake-plugin/Makefile | 1 | ||||
-rw-r--r-- | science/xfce4-equake-plugin/files/patch-panel-plugin__equake_func.h | 290 |
2 files changed, 291 insertions, 0 deletions
diff --git a/science/xfce4-equake-plugin/Makefile b/science/xfce4-equake-plugin/Makefile index 87311fa2e766..ff8ab43efcb8 100644 --- a/science/xfce4-equake-plugin/Makefile +++ b/science/xfce4-equake-plugin/Makefile @@ -4,6 +4,7 @@ PORTNAME= xfce4-equake-plugin PORTVERSION= 1.3.2 +PORTREVISION= 1 CATEGORIES= science xfce MASTER_SITES= http://www.e-quake.org/wp-uploads/2013/07/ DIST_SUBDIR= xfce4 diff --git a/science/xfce4-equake-plugin/files/patch-panel-plugin__equake_func.h b/science/xfce4-equake-plugin/files/patch-panel-plugin__equake_func.h new file mode 100644 index 000000000000..893220804f7e --- /dev/null +++ b/science/xfce4-equake-plugin/files/patch-panel-plugin__equake_func.h @@ -0,0 +1,290 @@ +Fix errors with clang 3.3 + +--- panel-plugin/equake_func.h.orig 2013-07-31 23:42:02.000000000 +0000 ++++ panel-plugin/equake_func.h 2013-08-02 18:49:06.000000000 +0000 +@@ -26,23 +26,23 @@ + ( + GtkWidget *event_box, + GdkEventButton *event, +- gpointer data; ++ gpointer data + ); + + void equake_setprefs + ( +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + void equake_getprefs + ( +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + void equake_saveprefs + ( + struct Equake_Data *equakedata, +- FILE *fp; ++ FILE *fp + ); + + /*static void equake_applet_change_background +@@ -50,7 +50,7 @@ + XfcePanelPlugin *applet, + XfcePanelPluginBackgroundType type, + GdkColor *colour, +- GdkPixmap *pixmap; ++ GdkPixmap *pixmap + );*/ + + static void equake_applet_fill +@@ -60,7 +60,7 @@ + + void setdefaults + ( +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + /* process the arguments given at program startup, if any */ +@@ -68,52 +68,52 @@ + ( + int arg, + char **argv, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + int processdata_daily + ( +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + int render_equake_label + ( +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + static void set_label_tooltip_text + ( +- GtkWidget *label, ++ GtkLabel *label, + char *lbltxt, +- char *tooltiptxt; ++ char *tooltiptxt + ); + + int processdata + ( + struct Equake_Data *equakedata, +- int period; ++ int period + ); + + void set_signature_file + ( +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + void alert_heavy_quake + ( + struct Equake_Data *equakedata, +- int pos; ++ int pos + ); + + void set_magnitude_icon + ( + struct Equake_Data *equakedata, +- int pos; ++ int pos + ); + + int convert_localtime + ( +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + long long diff_tm +@@ -124,14 +124,14 @@ + + int eventloop + ( +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + /* print error message and exit */ + void error + ( + char *msg, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + /* In case of partial send make sure everything is sent or give an error */ +@@ -139,7 +139,7 @@ + ( + int socket, + char *buf, +- int *len; ++ int *len + ); + + int receiveall +@@ -147,7 +147,7 @@ + int socket, + char *buf, + int len, +- int period; ++ int period + ); + + /* +@@ -157,7 +157,7 @@ + int getquakedata + ( + struct Equake_Data *equakedata, +- int period; ++ int period + ); + + int startequake +@@ -165,38 +165,38 @@ + XfcePanelPlugin *applet, + GtkWidget *label, + GtkWidget *logo, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + /* menu functions */ + static void do_update + ( + XfcePanelPlugin *applet, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + static void load_details + ( + XfcePanelPlugin *applet, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + static void load_map + ( + XfcePanelPlugin *applet, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + static void load_didyoufeelit + ( + XfcePanelPlugin *applet, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + static void display_properties_dialog + ( + XfcePanelPlugin *applet, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + static void set_properties_from_dialog +@@ -205,41 +205,42 @@ + int willalert, + int alertheavy, + int sigfilemag, +- int monitormag; ++ int monitormag, ++ struct Equake_Data *equakedata + ); + + static void display_about_dialog + ( + XfcePanelPlugin *applet, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + static void display_dialog + ( +- char *t; ++ char *t + ); + + static void display_url + ( +- char *url; ++ char *url + ); + + static void display_nonmodaldialog + ( + GtkWidget *dialog, +- char *t; ++ char *t + ); + + static void display_lastday + ( + XfcePanelPlugin *applet, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + static void display_lasthour + ( + XfcePanelPlugin *applet, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + static void fill_text_period +@@ -247,31 +248,31 @@ + struct Equake_Data *equakedata, + char *running, + char *periodtext, +- int period; ++ int period + ); + + static void display_period_window + ( + char *text, +- int period; ++ int period + ); + + static void display_lastperiod + ( +- struct Equake_Data *equakedata; +- int period; ++ struct Equake_Data *equakedata, ++ int period + ); + + static void equake_orientation_changedi + ( + XfcePanelPlugin *applet, + GtkOrientation orientation, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); + + static void equake_size_changed + ( + XfcePanelPlugin *applet, + int size, +- struct Equake_Data *equakedata; ++ struct Equake_Data *equakedata + ); |