[Devel] Declare const

Kir Kolyshkin kir at openvz.org
Sun Apr 28 22:10:56 PDT 2013


On 04/28/2013 08:31 PM, Igor Podlesny wrote:
> ---
>   src/lib/util.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lib/util.c b/src/lib/util.c
> index b09edfe..a835da9 100644
> --- a/src/lib/util.c
> +++ b/src/lib/util.c
> @@ -41,7 +41,7 @@
>   #define NR_OPEN 1024
>   #endif
>   
> -static const char *unescapestr(char *src)
> +static const char *unescapestr(char *const src)
>   {
>   	char *p1, *p2;
>   	int fl = 0;
Applied. Please make subjects more informative,
for example in this case it could be something like:

unescapestr(): declare src argument as const

(I actually fixed it that way)



More information about the Devel mailing list