File: 04_signedness.dpatch

package info (click to toggle)
9menu 1.8-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 96 kB
  • ctags: 62
  • sloc: ansic: 613; sh: 223; makefile: 40
file content (54 lines) | stat: -rw-r--r-- 1,760 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh -e
## 04_signedness.dpatch by Andrew Stribblehill <ads@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"

case "$1" in
       -patch) patch $patch_opts -p1 < $0;;
       -unpatch) patch $patch_opts -p1 -R < $0;;
        *)
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
                exit 1;;
esac

exit 0

@DPATCH@
--- 9menu-1.7/9menu.c.orig	2005-08-15 09:35:36.000000000 +0100
+++ 9menu-1.7/9menu.c	2005-08-15 09:41:24.000000000 +0100
@@ -95,7 +95,7 @@
 /* the 9menu icon, for garish window managers */
 #define nine_menu_width 40
 #define nine_menu_height 40
-static unsigned char nine_menu_bits[] = {
+static char nine_menu_bits[] = {
    0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x00, 0x00, 0x04, 0x00,
    0x80, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x00,
    0x00, 0xfc, 0xff, 0xff, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x04,
@@ -769,7 +769,7 @@
 	Window wdummy;
 
 	if (XQueryPointer(dpy, menuwin, &wdummy, &wdummy, &x, &y,
-			       &dummy, &dummy, &dummy))
+			       &dummy, &dummy, (unsigned int *)&dummy))
 		XMoveWindow(dpy, menuwin, x-wide/2, y-cur*high-high/2);
 }
 
@@ -788,7 +788,7 @@
 	offset += 6;	/* fudge factor */
 
 	if (XQueryPointer(dpy, menuwin, &wdummy, &wdummy, &savex, &savey,
-			       &dummy, &dummy, &dummy))
+			       &dummy, &dummy, (unsigned int *)&dummy))
 		XWarpPointer(dpy, None, menuwin, 0, 0, 0, 0,
 				wide/2, cur*high-high/2+offset);
 }