From: Weili Qian qianweili@huawei.com
Use marco to replace incomprehensible numbers.
Signed-off-by: Weili Qian qianweili@huawei.com --- uadk_tool/benchmark/sec_uadk_benchmark.c | 2 +- uadk_tool/benchmark/zip_uadk_benchmark.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/uadk_tool/benchmark/sec_uadk_benchmark.c b/uadk_tool/benchmark/sec_uadk_benchmark.c index 9f1f903..88806ca 100644 --- a/uadk_tool/benchmark/sec_uadk_benchmark.c +++ b/uadk_tool/benchmark/sec_uadk_benchmark.c @@ -600,8 +600,8 @@ static void uninit_ctx_config2(int subtype)
static int init_ctx_config2(struct acc_option *options) { - char alg_name[64]; int subtype = options->subtype; + char alg_name[MAX_ALG_NAME]; int ret;
ret = get_alg_name(options->algtype, alg_name); diff --git a/uadk_tool/benchmark/zip_uadk_benchmark.c b/uadk_tool/benchmark/zip_uadk_benchmark.c index 7b02df8..435c0b4 100644 --- a/uadk_tool/benchmark/zip_uadk_benchmark.c +++ b/uadk_tool/benchmark/zip_uadk_benchmark.c @@ -286,7 +286,7 @@ static void uninit_ctx_config2(void)
static int init_ctx_config2(struct acc_option *options) { - char alg_name[64]; + char alg_name[MAX_ALG_NAME]; int ret = 0;
ret = get_alg_name(options->algtype, alg_name);