summaryrefslogtreecommitdiff
blob: 8fe9315d8370cdbe25e9ba0de7876cbccc5e911d (plain)
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
https://bugs.gentoo.org/272505

--- mpatrol-orig/src/mptrace.c
+++ mpatrol/src/mptrace.c
@@ -268,27 +268,27 @@
 static XtResource resources[] =
 {
     {"alloc", XmCColor, XmRPixel, sizeof(Pixel),
-     (Cardinal) &alcol, XmRString, (XtPointer) "black"},
+     (long) &alcol, XmRString, (XtPointer) "black"},
     {"base", "Base", XmRInt, sizeof(void *),
-     (Cardinal) &addrbase, XmRImmediate, (XtPointer) NULL},
+     (long) &addrbase, XmRImmediate, (XtPointer) NULL},
     {"delay", "Delay", XmRInt, sizeof(unsigned long),
-     (Cardinal) &delay, XmRImmediate, (XtPointer) 0},
+     (long) &delay, XmRImmediate, (XtPointer) 0},
     {"free", XmCColor, XmRPixel, sizeof(Pixel),
-     (Cardinal) &frcol, XmRString, (XtPointer) "white"},
+     (long) &frcol, XmRString, (XtPointer) "white"},
     {"height", XmCHeight, XmRShort, sizeof(Dimension),
-     (Cardinal) &height, XmRImmediate, (XtPointer) 512},
+     (long) &height, XmRImmediate, (XtPointer) 512},
     {"internal", XmCColor, XmRPixel, sizeof(Pixel),
-     (Cardinal) &incol, XmRString, (XtPointer) "red"},
+     (long) &incol, XmRString, (XtPointer) "red"},
     {"space", "Space", XmRInt, sizeof(unsigned long),
-     (Cardinal) &addrspace, XmRImmediate, (XtPointer) 4},
+     (long) &addrspace, XmRImmediate, (XtPointer) 4},
     {"unalloc", XmCColor, XmRPixel, sizeof(Pixel),
-     (Cardinal) &uncol, XmRString, (XtPointer) "blue"},
+     (long) &uncol, XmRString, (XtPointer) "blue"},
     {"view-height", XmCHeight, XmRShort, sizeof(Dimension),
-     (Cardinal) &vheight, XmRImmediate, (XtPointer) 256},
+     (long) &vheight, XmRImmediate, (XtPointer) 256},
     {"view-width", XmCWidth, XmRShort, sizeof(Dimension),
-     (Cardinal) &vwidth, XmRImmediate, (XtPointer) 256},
+     (long) &vwidth, XmRImmediate, (XtPointer) 256},
     {"width", XmCWidth, XmRShort, sizeof(Dimension),
-     (Cardinal) &width, XmRImmediate, (XtPointer) 512}
+     (long) &width, XmRImmediate, (XtPointer) 512}
 };
 
 
--- mpatrol-orig/tools/dmalloc.c
+++ mpatrol/tools/dmalloc.c
@@ -395,7 +395,7 @@
 char *
 bytestring(char *b, size_t s, char *p, size_t l)
 {
-    char *t;
+    const char *t;
     size_t i, n;
 
     for (i = n = 0; (i < s) && (i < l); i++)