procfs: resolve Coverity warnings
This commit is contained in:
parent
b3f47f5835
commit
8c5d506b8a
1 changed files with 2 additions and 2 deletions
|
@ -411,14 +411,14 @@ static void pid_read(struct inode *node)
|
|||
/*===========================================================================*
|
||||
* pid_link *
|
||||
*===========================================================================*/
|
||||
static int pid_link(struct inode *UNUSED(node), char *ptr, int UNUSED(max))
|
||||
static int pid_link(struct inode *UNUSED(node), char *ptr, int max)
|
||||
{
|
||||
/* The contents of a symbolic link in a PID directory are requested.
|
||||
* This function is a placeholder for future use.
|
||||
*/
|
||||
|
||||
/* Nothing yet. */
|
||||
strcpy(ptr, "");
|
||||
strlcpy(ptr, "", max);
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue