svn commit: r417956 - in head/x11/wmctrl: . files
Mikhail Teterin
mi at FreeBSD.org
Sun Jul 3 05:18:11 UTC 2016
Author: mi
Date: Sun Jul 3 05:18:09 2016
New Revision: 417956
URL: https://svnweb.freebsd.org/changeset/ports/417956
Log:
Fix compiler-warnings. Add LICENSE-declaration.
Approved by: maintainer
Modified:
head/x11/wmctrl/Makefile
head/x11/wmctrl/files/patch-main.c
Modified: head/x11/wmctrl/Makefile
==============================================================================
--- head/x11/wmctrl/Makefile Sun Jul 3 05:17:23 2016 (r417955)
+++ head/x11/wmctrl/Makefile Sun Jul 3 05:18:09 2016 (r417956)
@@ -10,6 +10,8 @@ MASTER_SITES= http://sweb.cz/tripie/util
MAINTAINER= flz at FreeBSD.org
COMMENT= Command line tool to interact with an EWMH/NetWM compatible X managers
+LICENSE= GPLv2
+
USES= pkgconfig
GNU_CONFIGURE= yes
USE_XORG= x11 xmu xext xt
Modified: head/x11/wmctrl/files/patch-main.c
==============================================================================
--- head/x11/wmctrl/files/patch-main.c Sun Jul 3 05:17:23 2016 (r417955)
+++ head/x11/wmctrl/files/patch-main.c Sun Jul 3 05:18:09 2016 (r417956)
@@ -1,5 +1,54 @@
---- main.c.orig 2005-01-29 03:31:33.000000000 +0000
-+++ main.c 2010-12-20 11:09:11.000000000 +0000
+--- main.c 2005-01-29 03:31:33.000000000 +0000
++++ main.c 2016-07-01 20:14:55.443662000 +0000
+@@ -210,14 +210,14 @@
+ static int close_window (Display *disp, Window win);
+ static int longest_str (gchar **strv);
+ static int window_to_desktop (Display *disp, Window win, int desktop);
+-static void window_set_title (Display *disp, Window win, char *str, char mode);
++static void window_set_title (Display *disp, Window win, const char *str, char mode);
+ static gchar *get_window_title (Display *disp, Window win);
+ static gchar *get_window_class (Display *disp, Window win);
+ static gchar *get_property (Display *disp, Window win,
+ Atom xa_prop_type, gchar *prop_name, unsigned long *size);
+ static void init_charset(void);
+-static int window_move_resize (Display *disp, Window win, char *arg);
+-static int window_state (Display *disp, Window win, char *arg);
++static int window_move_resize (Display *disp, Window win, const char *arg);
++static int window_state (Display *disp, Window win, const char *arg);
+ static Window Select_Window(Display *dpy);
+ static Window get_active_window(Display *dpy);
+
+@@ -629,9 +629,9 @@
+ }/*}}}*/
+
+ static void window_set_title (Display *disp, Window win, /* {{{ */
+- char *title, char mode) {
+- gchar *title_utf8;
+- gchar *title_local;
++ const char *title, char mode) {
++ void *title_utf8;
++ void *title_local;
+
+ if (envir_utf8) {
+ title_utf8 = g_strdup(title);
+@@ -734,7 +734,7 @@
+ 0, 0, 0, 0, 0);
+ }/*}}}*/
+
+-static int window_state (Display *disp, Window win, char *arg) {/*{{{*/
++static int window_state (Display *disp, Window win, const char *arg) {/*{{{*/
+ unsigned long action;
+ Atom prop1 = 0;
+ Atom prop2 = 0;
+@@ -827,7 +827,7 @@
+ return FALSE;
+ }/*}}}*/
+
+-static int window_move_resize (Display *disp, Window win, char *arg) {/*{{{*/
++static int window_move_resize (Display *disp, Window win, const char *arg) {/*{{{*/
+ signed long grav, x, y, w, h;
+ unsigned long grflags;
+ const char *argerr = "The -e option expects a list of comma separated integers: \"gravity,X,Y,width,height\"\n";
@@ -1441,6 +1441,9 @@
/* null terminate the result to make string handling easier */
More information about the svn-ports-head
mailing list