1 |
vapier 08/12/30 12:38:29 |
2 |
|
3 |
Modified: paxelf.c paxmacho.c |
4 |
Log: |
5 |
drop MAP_FAILED casts as its a void* |
6 |
|
7 |
Revision Changes Path |
8 |
1.62 pax-utils/paxelf.c |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/paxelf.c?rev=1.62&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/paxelf.c?rev=1.62&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/paxelf.c?r1=1.61&r2=1.62 |
13 |
|
14 |
Index: paxelf.c |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-projects/pax-utils/paxelf.c,v |
17 |
retrieving revision 1.61 |
18 |
retrieving revision 1.62 |
19 |
diff -u -r1.61 -r1.62 |
20 |
--- paxelf.c 30 Dec 2008 12:34:28 -0000 1.61 |
21 |
+++ paxelf.c 30 Dec 2008 12:38:29 -0000 1.62 |
22 |
@@ -1,7 +1,7 @@ |
23 |
/* |
24 |
* Copyright 2003-2007 Gentoo Foundation |
25 |
* Distributed under the terms of the GNU General Public License v2 |
26 |
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxelf.c,v 1.61 2008/12/30 12:34:28 vapier Exp $ |
27 |
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxelf.c,v 1.62 2008/12/30 12:38:29 vapier Exp $ |
28 |
* |
29 |
* Copyright 2005-2007 Ned Ludd - <solar@g.o> |
30 |
* Copyright 2005-2007 Mike Frysinger - <vapier@g.o> |
31 |
@@ -543,7 +543,7 @@ |
32 |
} |
33 |
|
34 |
buffer = mmap(0, len, PROT_READ | (read_only ? 0 : PROT_WRITE), (read_only ? MAP_PRIVATE : MAP_SHARED), fd, 0); |
35 |
- if (buffer == (char*)MAP_FAILED) { |
36 |
+ if (buffer == MAP_FAILED) { |
37 |
warn("mmap on '%s' of %li bytes failed :(", filename, (unsigned long)len); |
38 |
return NULL; |
39 |
} |
40 |
|
41 |
|
42 |
|
43 |
1.13 pax-utils/paxmacho.c |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/paxmacho.c?rev=1.13&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/paxmacho.c?rev=1.13&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/paxmacho.c?r1=1.12&r2=1.13 |
48 |
|
49 |
Index: paxmacho.c |
50 |
=================================================================== |
51 |
RCS file: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v |
52 |
retrieving revision 1.12 |
53 |
retrieving revision 1.13 |
54 |
diff -u -r1.12 -r1.13 |
55 |
--- paxmacho.c 30 Dec 2008 12:34:28 -0000 1.12 |
56 |
+++ paxmacho.c 30 Dec 2008 12:38:29 -0000 1.13 |
57 |
@@ -1,7 +1,7 @@ |
58 |
/* |
59 |
* Copyright 2003-2008 Gentoo Foundation |
60 |
* Distributed under the terms of the GNU General Public License v2 |
61 |
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v 1.12 2008/12/30 12:34:28 vapier Exp $ |
62 |
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.c,v 1.13 2008/12/30 12:38:29 vapier Exp $ |
63 |
* |
64 |
* Copyright 2005-2007 Ned Ludd - <solar@g.o> |
65 |
* Copyright 2005-2007 Mike Frysinger - <vapier@g.o> |
66 |
@@ -239,7 +239,7 @@ |
67 |
return NULL; |
68 |
|
69 |
data = mmap(0, len, PROT_READ, MAP_PRIVATE, fd, 0); |
70 |
- if (data == (char*)MAP_FAILED) { |
71 |
+ if (data == MAP_FAILED) { |
72 |
warn("mmap on '%s' of %llu bytes failed :(", |
73 |
filename, (unsigned long long)len); |
74 |
return NULL; |