Re: [PATCH 1/3] cal: use a const char*

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am starting to work on cal to add the vertical layout
https://github.com/karelzak/util-linux/issues/604

I am starting to share some cleaning before submitting the feature.

What do you prefer for the feature itself ?
A Pull-request on github or patch using the mailing list?
I have no idea about how many commits I will create.
I can squash them once it is ready and submit on the mailing list.


Best Regars,
Ôrel

On Sat, Mar 28, 2020 at 11:33 PM Aurelien LAJOIE <orel@xxxxxxxxx> wrote:
>
> A put string function should not modify the char*
>
> Signed-off-by: Aurelien LAJOIE <orel@xxxxxxxxx>
> ---
>  misc-utils/cal.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/misc-utils/cal.c b/misc-utils/cal.c
> index 6f192ccea..728600377 100644
> --- a/misc-utils/cal.c
> +++ b/misc-utils/cal.c
> @@ -108,7 +108,7 @@ static int setup_terminal(char *term
>         return 0;
>  }
>
> -static void my_putstring(char *s)
> +static void my_putstring(const char *s)
>  {
>  #if defined(HAVE_LIBNCURSES) || defined(HAVE_LIBNCURSESW)
>         if (has_term)
> --
> 2.20.1
>




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux