From: Mike Frysinger <vapier@gentoo.org>
To: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] Fix digsig so it passes -Wshadow
Date: Thu, 13 Aug 2009 03:24:28 -0400 [thread overview]
Message-ID: <200908130324.29506.vapier@gentoo.org> (raw)
In-Reply-To: <20090731143544.GA9440@us.ibm.com>
[-- Attachment #1.1: Type: text/plain, Size: 967 bytes --]
On Friday 31 July 2009 10:35:44 Serge E. Hallyn wrote:
> Quoting Garrett Cooper (yanegomi@gmail.com):
> > clone(2) is externally defined in sched.h, and as such
> > testcases/kernel/security/digsig/writeexec/libwritetest.c fails to
> > compile with -Wall due to a shadowed declaration.
> >
> > Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
> >
> > --- writeexec/libwritetest.c 1 Nov 2005 16:09:43 -0000 1.1
> > +++ writeexec/libwritetest.c 31 Jul 2009 06:30:49 -0000
> > @@ -9,8 +9,6 @@
> > #include <dlfcn.h>
> > #include <wait.h>
> >
> > -int clone(int (*fn)(void *), void *child_stack, int flags, void *arg);
> > -
> > int writer(void *data)
> > {
> > int fd;
>
> Sure, as long as that's now the case on all distros. Historically it
> hasn't been. But if it's not we'll presumably hear about it.
except clone() is not safe to use directly as it isnt the same on all arches.
we really need a wrapper for this in ltp.
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 355 bytes --]
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2009-08-13 7:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-31 6:33 [LTP] Fix digsig so it passes -Wshadow Garrett Cooper
2009-07-31 7:43 ` Garrett Cooper
2009-07-31 14:36 ` Serge E. Hallyn
2009-08-03 11:20 ` Subrata Modak
2009-08-03 14:17 ` Serge E. Hallyn
2009-08-04 12:08 ` Subrata Modak
2009-07-31 14:35 ` Serge E. Hallyn
2009-08-13 7:24 ` Mike Frysinger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200908130324.29506.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox