[apparmor] [PATCH 3/7] Make some parameters of parser interface constant
Seth Arnold
seth.arnold at canonical.com
Wed Feb 15 02:57:17 UTC 2017
On Fri, Feb 10, 2017 at 12:48:49PM -0800, John Johansen wrote:
If the compiler's okay with it then I'm okay with it :)
Acked-by: Seth Arnold <seth.arnold at canonical.com>
Thanks
> ---
> parser/parser_interface.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/parser/parser_interface.c b/parser/parser_interface.c
> index 5d9e0a0..00a81f2 100644
> --- a/parser/parser_interface.c
> +++ b/parser/parser_interface.c
> @@ -250,7 +250,7 @@ static inline void sd_write_name(std::ostringstream &buf, const char *name)
> }
> }
>
> -static inline void sd_write_blob(std::ostringstream &buf, void *b, int buf_size, char *name)
> +static inline void sd_write_blob(std::ostringstream &buf, const void *b, int buf_size, const char *name)
> {
> sd_write_name(buf, name);
> sd_write8(buf, SD_BLOB);
> @@ -273,7 +273,7 @@ static inline void sd_write_aligned_blob(std::ostringstream &buf, void *b, int b
> buf.write((const char *) b, b_size);
> }
>
> -static void sd_write_strn(std::ostringstream &buf, char *b, int size, const char *name)
> +static void sd_write_strn(std::ostringstream &buf, const char *b, int size, const char *name)
> {
> sd_write_name(buf, name);
> sd_write8(buf, SD_STRING);
> @@ -281,7 +281,7 @@ static void sd_write_strn(std::ostringstream &buf, char *b, int size, const char
> buf.write(b, size);
> }
>
> -static inline void sd_write_string(std::ostringstream &buf, char *b, const char *name)
> +static inline void sd_write_string(std::ostringstream &buf, const char *b, const char *name)
> {
> sd_write_strn(buf, b, strlen(b) + 1, name);
> }
> --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20170214/a147f698/attachment.pgp>
More information about the AppArmor
mailing list