From: Stephen Smalley <sds@tycho.nsa.gov>
To: Paul Moore <pmoore@redhat.com>, selinux@tycho.nsa.gov
Subject: Re: [PATCH v3 6/6] selinux-testsuite: fix compile problems in tests/capable_file
Date: Fri, 05 Jun 2015 09:20:11 -0400 [thread overview]
Message-ID: <5571A20B.6080809@tycho.nsa.gov> (raw)
In-Reply-To: <20150604205830.19614.68299.stgit@localhost>
On 06/04/2015 04:58 PM, Paul Moore wrote:
> Fix the following warnings:
>
> make[2]: Entering directory '/home/pmoore/sources/selinux-testsuite/selinux_testsuite-upstream/tests/capable_file'
> cc -g -O0 -Wall -D_GNU_SOURCE test_lease.c -o test_lease
> test_lease.c: In function 'main':
> test_lease.c:22:3: warning: implicit declaration of function 'open'
> fd = open(argv[1], O_RDONLY, 0);
> ^
> test_lease.c:29:3: warning: implicit declaration of function 'fcntl'
> rc = fcntl(fd, F_SETLEASE, 0);
> ^
>
> Signed-off-by: Paul Moore <paul@paul-moore.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
for all 6 patches.
> ---
> tests/capable_file/test_lease.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/tests/capable_file/test_lease.c b/tests/capable_file/test_lease.c
> index 606d75c..e8f29eb 100644
> --- a/tests/capable_file/test_lease.c
> +++ b/tests/capable_file/test_lease.c
> @@ -1,9 +1,10 @@
> -#include<stdio.h>
> -#include<stdlib.h>
> -#include<sys/types.h>
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <sys/types.h>
> +#include <sys/stat.h>
> #include <linux/posix_types.h>
> -#include<linux/fcntl.h>
> #include <unistd.h>
> +#include <fcntl.h>
>
> /*
> * Test the fcntl F_SETLEASE operation on a file whose name is given as
>
> _______________________________________________
> Selinux mailing list
> Selinux@tycho.nsa.gov
> To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
> To get help, send an email containing "help" to Selinux-request@tycho.nsa.gov.
>
>
next prev parent reply other threads:[~2015-06-05 13:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-04 20:57 [PATCH v3 0/6] SELinux testsuite compilation fixes Paul Moore
2015-06-04 20:58 ` [PATCH v3 1/6] selinux-testsuite: add _GNU_SOURCE to tests/Makefile Paul Moore
2015-06-04 20:58 ` [PATCH v3 2/6] selinux-testsuite: add some default CFLAGS Paul Moore
2015-06-04 20:58 ` [PATCH v3 3/6] selinux-testsuite: fix some compile warnings in tests/nnp Paul Moore
2015-06-04 20:58 ` [PATCH v3 4/6] selinux-testsuite: fix compile warnings in tests/setnice Paul Moore
2015-06-04 20:58 ` [PATCH v3 5/6] selinux-testsuite: fix compile problems in tests/shm Paul Moore
2015-06-04 20:58 ` [PATCH v3 6/6] selinux-testsuite: fix compile problems in tests/capable_file Paul Moore
2015-06-05 13:20 ` Stephen Smalley [this message]
2015-06-05 13:50 ` Paul Moore
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=5571A20B.6080809@tycho.nsa.gov \
--to=sds@tycho.nsa.gov \
--cc=pmoore@redhat.com \
--cc=selinux@tycho.nsa.gov \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.