From 77b09b2ab4ca5fad07f473f7ebb71ea466eed504 Mon Sep 17 00:00:00 2001 From: chengjinsong Date: Mon, 8 Aug 2022 19:00:50 +0800 Subject: [PATCH] codex Signed-off-by: chengjinsong --- services/param/linux/param_osadp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/param/linux/param_osadp.c b/services/param/linux/param_osadp.c index 7a12a6821..38ee7f6ab 100644 --- a/services/param/linux/param_osadp.c +++ b/services/param/linux/param_osadp.c @@ -55,7 +55,7 @@ int ParamRWMutexUnlock(ParamRWMutex *lock) int ParamRWMutexDelete(ParamRWMutex *lock) { PARAM_CHECK(lock != NULL, return -1, "Invalid lock"); - uint32_t ret = pthread_rwlock_destroy(&lock->rwlock); + int ret = pthread_rwlock_destroy(&lock->rwlock); PARAM_CHECK(ret == 0, return -1, "Failed to mutex lock ret %d", ret); return 0; }