From 14aa5e63ab989e4f85495e96a74f34d18813caf6 Mon Sep 17 00:00:00 2001 From: Zhihao Cheng Date: Mon, 11 Nov 2024 16:36:35 +0800 Subject: ubifs-utils: Clean up error message printing functions Functions 'err_msg' and 'sys_err_msg' are almost same with 'errmsg' and 'sys_errmsg', since 'errmsg' and 'sys_errmsg' can print programe name, so replace error message printing functions (ubifs-utils) with common lib functions(include/common.h). Signed-off-by: Zhihao Cheng Signed-off-by: David Oberhollenzer --- ubifs-utils/common/crypto.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'ubifs-utils/common/crypto.c') diff --git a/ubifs-utils/common/crypto.c b/ubifs-utils/common/crypto.c index 614a16d..2ecd8da 100644 --- a/ubifs-utils/common/crypto.c +++ b/ubifs-utils/common/crypto.c @@ -27,11 +27,6 @@ #include "defs.h" #include "ubifs.h" -/* common.h requires the PROGRAM_NAME macro */ -extern struct ubifs_info info_; -#define PROGRAM_NAME (info_.program_name) -#include "common.h" - static int do_hash(const EVP_MD *md, const unsigned char *in, size_t len, unsigned char *out) { unsigned int out_len; -- cgit v1.2.3