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:
Huihuang Shi
2018-07-26 12:03:12 +08:00
committed by lijinxia
parent 9d4c9d769e
commit 59771ff461
23 changed files with 76 additions and 46 deletions

View File

@@ -42,7 +42,7 @@ struct print_param {
} vars;
};
int do_print(const char *fmt, struct print_param *param,
int do_print(const char *fmt_arg, struct print_param *param,
__builtin_va_list args);
/** The well known vsnprintf() function.
@@ -56,7 +56,7 @@ int do_print(const char *fmt, struct print_param *param,
* @return The number of bytes which would be written, even if the destination
* is smaller. On error a negative number is returned.
*/
int vsnprintf(char *dst, size_t sz, const char *fmt, va_list args);
int vsnprintf(char *dst_arg, size_t sz_arg, const char *fmt, va_list args);
/** The well known snprintf() function.
*