mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 12:35:48 +00:00
HV:treewide:fix "Reference parameter to procedure is reassigned"
Parameter's type which is pointer should not be changed in the scope of function,assign it's value to local variable to fixed it out. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -24,7 +24,7 @@ void console_init(void);
|
||||
* and no character was written.
|
||||
*/
|
||||
|
||||
int console_puts(const char *str);
|
||||
int console_puts(const char *s_arg);
|
||||
|
||||
/** Writes a given number of characters to the console.
|
||||
*
|
||||
@@ -35,7 +35,7 @@ int console_puts(const char *str);
|
||||
* and no character was written.
|
||||
*/
|
||||
|
||||
int console_write(const char *str, size_t len);
|
||||
int console_write(const char *s_arg, size_t len);
|
||||
|
||||
/** Writes a single character to the console.
|
||||
*
|
||||
|
Reference in New Issue
Block a user