diff mbox series

[userspace,v2,1/6] libsemanage: add missing include to boolean_record.c

Message ID 20220203165327.213601-2-omosnace@redhat.com (mailing list archive)
State Accepted
Headers show
Series Optionally rebuild policy store only if there were external changes to modules | expand

Commit Message

Ondrej Mosnacek Feb. 3, 2022, 4:53 p.m. UTC
It uses asprintf(3), but doesn't directly include <stdio.h> - fix it.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
---
 libsemanage/src/boolean_record.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

James Carter Feb. 11, 2022, 9:51 p.m. UTC | #1
On Fri, Feb 4, 2022 at 3:46 AM Ondrej Mosnacek <omosnace@redhat.com> wrote:
>
> It uses asprintf(3), but doesn't directly include <stdio.h> - fix it.
>
> Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>

For this series:
Acked-by: James Carter <jwcart2@gmail.com>

> ---
>  libsemanage/src/boolean_record.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/libsemanage/src/boolean_record.c b/libsemanage/src/boolean_record.c
> index 95f3a862..40dc6545 100644
> --- a/libsemanage/src/boolean_record.c
> +++ b/libsemanage/src/boolean_record.c
> @@ -7,6 +7,9 @@
>   */
>
>  #include <string.h>
> +#include <stdio.h>
> +#include <stdlib.h>
> +
>  #include <sepol/boolean_record.h>
>
>  typedef sepol_bool_t semanage_bool_t;
> @@ -20,7 +23,6 @@ typedef semanage_bool_key_t record_key_t;
>  #include "boolean_internal.h"
>  #include "handle.h"
>  #include "database.h"
> -#include <stdlib.h>
>  #include <selinux/selinux.h>
>
>  /* Key */
> --
> 2.34.1
>
James Carter Feb. 18, 2022, 6:42 p.m. UTC | #2
On Fri, Feb 11, 2022 at 4:51 PM James Carter <jwcart2@gmail.com> wrote:
>
> On Fri, Feb 4, 2022 at 3:46 AM Ondrej Mosnacek <omosnace@redhat.com> wrote:
> >
> > It uses asprintf(3), but doesn't directly include <stdio.h> - fix it.
> >
> > Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
>
> For this series:
> Acked-by: James Carter <jwcart2@gmail.com>
>
This series has been merged.
Thanks,
Jim

> > ---
> >  libsemanage/src/boolean_record.c | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/libsemanage/src/boolean_record.c b/libsemanage/src/boolean_record.c
> > index 95f3a862..40dc6545 100644
> > --- a/libsemanage/src/boolean_record.c
> > +++ b/libsemanage/src/boolean_record.c
> > @@ -7,6 +7,9 @@
> >   */
> >
> >  #include <string.h>
> > +#include <stdio.h>
> > +#include <stdlib.h>
> > +
> >  #include <sepol/boolean_record.h>
> >
> >  typedef sepol_bool_t semanage_bool_t;
> > @@ -20,7 +23,6 @@ typedef semanage_bool_key_t record_key_t;
> >  #include "boolean_internal.h"
> >  #include "handle.h"
> >  #include "database.h"
> > -#include <stdlib.h>
> >  #include <selinux/selinux.h>
> >
> >  /* Key */
> > --
> > 2.34.1
> >
diff mbox series

Patch

diff --git a/libsemanage/src/boolean_record.c b/libsemanage/src/boolean_record.c
index 95f3a862..40dc6545 100644
--- a/libsemanage/src/boolean_record.c
+++ b/libsemanage/src/boolean_record.c
@@ -7,6 +7,9 @@ 
  */
 
 #include <string.h>
+#include <stdio.h>
+#include <stdlib.h>
+
 #include <sepol/boolean_record.h>
 
 typedef sepol_bool_t semanage_bool_t;
@@ -20,7 +23,6 @@  typedef semanage_bool_key_t record_key_t;
 #include "boolean_internal.h"
 #include "handle.h"
 #include "database.h"
-#include <stdlib.h>
 #include <selinux/selinux.h>
 
 /* Key */