aboutsummaryrefslogtreecommitdiff
path: root/x11/xwatchwin
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2001-01-20 10:32:55 +0000
committerKris Kennaway <kris@FreeBSD.org>2001-01-20 10:32:55 +0000
commitb2b5f246a9e26179a8a3240c3132fd83cc413fc2 (patch)
tree3d5b2871f57ac7fb9712875f2e20214025f38ff3 /x11/xwatchwin
parent5520d967fedf0840351996a36ce561d7c45ec75a (diff)
downloadports-b2b5f246a9e26179a8a3240c3132fd83cc413fc2.tar.gz
ports-b2b5f246a9e26179a8a3240c3132fd83cc413fc2.zip
Correct manpage examples, and fix build warnings.
Submitted by: Dirk Froemberg <dirk@freebsd.org>
Notes
Notes: svn path=/head/; revision=37365
Diffstat (limited to 'x11/xwatchwin')
-rw-r--r--x11/xwatchwin/Makefile1
-rw-r--r--x11/xwatchwin/files/patch-aa42
-rw-r--r--x11/xwatchwin/files/patch-ab17
3 files changed, 60 insertions, 0 deletions
diff --git a/x11/xwatchwin/Makefile b/x11/xwatchwin/Makefile
index ed22a6f72a3d..b0cb505f926d 100644
--- a/x11/xwatchwin/Makefile
+++ b/x11/xwatchwin/Makefile
@@ -6,6 +6,7 @@
PORTNAME= xwatchwin
PORTVERSION= 1.1.1
+PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= utilities
diff --git a/x11/xwatchwin/files/patch-aa b/x11/xwatchwin/files/patch-aa
new file mode 100644
index 000000000000..29f23632a7fa
--- /dev/null
+++ b/x11/xwatchwin/files/patch-aa
@@ -0,0 +1,42 @@
+--- xwatchwin.c.orig Tue Nov 28 16:26:07 1995
++++ xwatchwin.c Sun Sep 3 12:07:17 2000
+@@ -77,19 +77,20 @@
+
+ /* --------------------------------------------------------------------- */
+
+-void
++int
+ main(int argc, char **argv)
+ {
+ Window watchWin;
+ int i, strPos, optIndex;
+ extern char *optarg;
+ extern int optind;
+- int windowID, updateTime = DEFSLEEPTIME;
++ long int windowID;
++ int updateTime = DEFSLEEPTIME;
+ Bool windowIDSet = False, updateTimeSet = False;
+ int optionsNeeded = 3, numoferrs = 0;
+
+ /* get arguments */
+- while ((optIndex = getopt(argc, argv, "u:w:v")) >= 0) {
++ while ((optIndex = getopt(argc, argv, "u:w:v")) != -1) {
+ switch (optIndex) {
+ case 'u':
+ updateTime = atoi(optarg);
+@@ -170,12 +171,15 @@
+ fprintf(stderr, "Could not find the window you specified.\n");
+ exit(1);
+ }
++
++ exit(0);
+ }
+
+ /* --------------------------------------------------------------------- */
+
+ /* Takes two strings, removes spaces from the second,... */
+ /* ...and compares them.. Returns 1 if equal, 0 if not. */
++int
+ WinNamesEqual(char *str1, char *str2)
+ {
+ char tempStr[STRINGLENGTH], *tempStrPtr;
diff --git a/x11/xwatchwin/files/patch-ab b/x11/xwatchwin/files/patch-ab
new file mode 100644
index 000000000000..905497614b70
--- /dev/null
+++ b/x11/xwatchwin/files/patch-ab
@@ -0,0 +1,17 @@
+--- xwatchwin.man.orig Tue Nov 28 16:27:49 1995
++++ xwatchwin.man Sun Sep 3 12:13:23 2000
+@@ -66,12 +66,12 @@
+ If there is a window on "crow" that has no name but has a window id of
+ "0x50000b", you can watch it by typing
+
+-xwatchwin crow -w 0x50000b
++xwatchwin -w 0x50000b crow
+
+ If you want to get new copies of a window only every 30 seconds, you
+ can do so by typing
+
+-xwatchwin crow -u 30 -w 0x50000b
++xwatchwin -u 30 -w 0x50000b crow
+
+ .SH "SEE ALSO"
+ .PP