lkml.org 
[lkml]   [2005]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] lib stringc cleanup restore useful memmove const
On 10/25/05, Paul Jackson <pj@sgi.com> wrote:
> A couple of (char *) casts removed in a previous cleanup patch
> in lib/string.c:memmove() were actually useful, as they
> suppressed a couple of warnings:
>
Hmm, you are right, I shouldn't have missed that, my bad.


> assignment discards qualifiers from pointer target type
>
> Fix by declaring the local variable const in the first place,
> so casts aren't needed to strip the const qualifier.
>
Looks good to me, thank you for fixing that up.


> Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>


--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-25 19:50    [W:0.034 / U:1.560 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site