bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 4/5] qualify constant with the const


From: Samuel Thibault
Subject: Re: [PATCH 4/5] qualify constant with the const
Date: Wed, 11 Sep 2013 22:14:49 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Marin Ramesa, le Wed 11 Sep 2013 12:27:50 +0200, a écrit :
> Function cnputc() should never modify it's argument so qualify it
> with a const keyword.
> 
>  void
>  cnputc(c)
> -     char c;
> +     const char c;

Well, this is not really useful: the function gets a copy of the
argument anyway.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]