Line
Link Here
|
0 |
-- mpatrol-orig/src/mptrace.c |
0 |
++ mpatrol/src/mptrace.c |
Lines 268-294
Link Here
|
268 |
static XtResource resources[] = |
268 |
static XtResource resources[] = |
269 |
{ |
269 |
{ |
270 |
{"alloc", XmCColor, XmRPixel, sizeof(Pixel), |
270 |
{"alloc", XmCColor, XmRPixel, sizeof(Pixel), |
271 |
(Cardinal) &alcol, XmRString, (XtPointer) "black"}, |
271 |
(long) &alcol, XmRString, (XtPointer) "black"}, |
272 |
{"base", "Base", XmRInt, sizeof(void *), |
272 |
{"base", "Base", XmRInt, sizeof(void *), |
273 |
(Cardinal) &addrbase, XmRImmediate, (XtPointer) NULL}, |
273 |
(long) &addrbase, XmRImmediate, (XtPointer) NULL}, |
274 |
{"delay", "Delay", XmRInt, sizeof(unsigned long), |
274 |
{"delay", "Delay", XmRInt, sizeof(unsigned long), |
275 |
(Cardinal) &delay, XmRImmediate, (XtPointer) 0}, |
275 |
(long) &delay, XmRImmediate, (XtPointer) 0}, |
276 |
{"free", XmCColor, XmRPixel, sizeof(Pixel), |
276 |
{"free", XmCColor, XmRPixel, sizeof(Pixel), |
277 |
(Cardinal) &frcol, XmRString, (XtPointer) "white"}, |
277 |
(long) &frcol, XmRString, (XtPointer) "white"}, |
278 |
{"height", XmCHeight, XmRShort, sizeof(Dimension), |
278 |
{"height", XmCHeight, XmRShort, sizeof(Dimension), |
279 |
(Cardinal) &height, XmRImmediate, (XtPointer) 512}, |
279 |
(long) &height, XmRImmediate, (XtPointer) 512}, |
280 |
{"internal", XmCColor, XmRPixel, sizeof(Pixel), |
280 |
{"internal", XmCColor, XmRPixel, sizeof(Pixel), |
281 |
(Cardinal) &incol, XmRString, (XtPointer) "red"}, |
281 |
(long) &incol, XmRString, (XtPointer) "red"}, |
282 |
{"space", "Space", XmRInt, sizeof(unsigned long), |
282 |
{"space", "Space", XmRInt, sizeof(unsigned long), |
283 |
(Cardinal) &addrspace, XmRImmediate, (XtPointer) 4}, |
283 |
(long) &addrspace, XmRImmediate, (XtPointer) 4}, |
284 |
{"unalloc", XmCColor, XmRPixel, sizeof(Pixel), |
284 |
{"unalloc", XmCColor, XmRPixel, sizeof(Pixel), |
285 |
(Cardinal) &uncol, XmRString, (XtPointer) "blue"}, |
285 |
(long) &uncol, XmRString, (XtPointer) "blue"}, |
286 |
{"view-height", XmCHeight, XmRShort, sizeof(Dimension), |
286 |
{"view-height", XmCHeight, XmRShort, sizeof(Dimension), |
287 |
(Cardinal) &vheight, XmRImmediate, (XtPointer) 256}, |
287 |
(long) &vheight, XmRImmediate, (XtPointer) 256}, |
288 |
{"view-width", XmCWidth, XmRShort, sizeof(Dimension), |
288 |
{"view-width", XmCWidth, XmRShort, sizeof(Dimension), |
289 |
(Cardinal) &vwidth, XmRImmediate, (XtPointer) 256}, |
289 |
(long) &vwidth, XmRImmediate, (XtPointer) 256}, |
290 |
{"width", XmCWidth, XmRShort, sizeof(Dimension), |
290 |
{"width", XmCWidth, XmRShort, sizeof(Dimension), |
291 |
(Cardinal) &width, XmRImmediate, (XtPointer) 512} |
291 |
(long) &width, XmRImmediate, (XtPointer) 512} |
292 |
}; |
292 |
}; |
293 |
|
293 |
|
294 |
|
294 |
|
295 |
-- mpatrol-orig/tools/dmalloc.c |
295 |
++ mpatrol/tools/dmalloc.c |
Lines 395-401
Link Here
|
395 |
char * |
395 |
char * |
396 |
bytestring(char *b, size_t s, char *p, size_t l) |
396 |
bytestring(char *b, size_t s, char *p, size_t l) |
397 |
{ |
397 |
{ |
398 |
char *t; |
398 |
const char *t; |
399 |
size_t i, n; |
399 |
size_t i, n; |
400 |
|
400 |
|
401 |
for (i = n = 0; (i < s) && (i < l); i++) |
401 |
for (i = n = 0; (i < s) && (i < l); i++) |