From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R1oRq-0007An-Gu for garchives@archives.gentoo.org; Thu, 08 Sep 2011 23:55:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79B0B21C03B; Thu, 8 Sep 2011 23:55:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 46D0921C03B for ; Thu, 8 Sep 2011 23:55:06 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A32EE1B402B for ; Thu, 8 Sep 2011 23:55:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D6BFA80051 for ; Thu, 8 Sep 2011 23:55:04 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: Subject: [gentoo-commits] proj/elfix:paxmark-libs commit in: / X-VCS-Repository: proj/elfix X-VCS-Files: README libmypax.c X-VCS-Directories: / X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: c67cc8958341a5420ea06b9a4a901f6aad53890a Date: Thu, 8 Sep 2011 23:55:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 634f3626122d9f2ab924ff9e404a824e commit: c67cc8958341a5420ea06b9a4a901f6aad53890a Author: Anthony G. Basile gentoo org> AuthorDate: Mon Sep 5 21:12:09 2011 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Mon Sep 5 21:12:09 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/elfix.git;a=3D= commit;h=3Dc67cc895 testpax.c: fixed minor warnings --- README | 3 +-- libmypax.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README b/README index ae7212b..e45f94c 100644 --- a/README +++ b/README @@ -6,8 +6,7 @@ What you need: =20 0. Preferrably do this on the One True Distro, hardened gentoo. 1. Run a pax enabled kernel with RANDMMAP - 2. Install app-misc/pax-utils - 3. Install sys-apps/paxctl + 2. Install sys-apps/paxctl =20 How to use this=20 =20 diff --git a/libmypax.c b/libmypax.c index 5b1068c..d09e79c 100644 --- a/libmypax.c +++ b/libmypax.c @@ -7,8 +7,8 @@ void doit() { printf("Doing it\n"); - size_t m =3D mmap( NULL, 4096, PROT_READ | PROT_WRITE, MAP_PRIVATE | MA= P_ANONYMOUS, -1, 0 ); - if( m =3D=3D MAP_FAILED ) + size_t m =3D (size_t) mmap( NULL, 4096, PROT_READ | PROT_WRITE, MAP_PRI= VATE | MAP_ANONYMOUS, -1, 0 ); + if( m =3D=3D (size_t) MAP_FAILED ) printf("%s\n", strerror(errno)); printf("Done it\n"); }