From a8a726360842517904b3446c8ee94de67108f1df Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Tue, 29 Jul 2014 16:09:41 +0000 Subject: Rename x11/ patch-xy patches to reflect the files they modify. --- x11/xwatchwin/files/patch-xwatchwin.c | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 x11/xwatchwin/files/patch-xwatchwin.c (limited to 'x11/xwatchwin/files/patch-xwatchwin.c') diff --git a/x11/xwatchwin/files/patch-xwatchwin.c b/x11/xwatchwin/files/patch-xwatchwin.c new file mode 100644 index 000000000000..29f23632a7fa --- /dev/null +++ b/x11/xwatchwin/files/patch-xwatchwin.c @@ -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; -- cgit v1.2.3