lkml.org 
[lkml]   [2022]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] alpha: move from strlcpy with unused retval to strscpy
From
Date
On Thu, 2022-08-18 at 22:59 +0200, Wolfram Sang wrote:
> Follow the advice of the below link and prefer 'strscpy' in this
> subsystem. Conversion is 1:1 because the return value is not used.
> Generated by a coccinelle script.

Nice.

Last time I posted a coccinelle script for strlcpy->strscpy conversions
with unused returns, there were several variants that were not converted.

https://lore.kernel.org/cocci/a3279a5772b2e49b57890cd75e97360b82890798.camel@perches.com/T/#m502108bfe0cc6a41d499a4c1b55d5f5db1423465

Did you post the script you used?

\
 
 \ /
  Last update: 2022-08-19 01:42    [W:0.035 / U:2.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site