From a9548b988b1ca1bdc9791ea5d2432e967c6c7e25 Mon Sep 17 00:00:00 2001 From: niuhui Date: Sun, 23 Apr 2023 18:42:09 +0800 Subject: [PATCH] fix code check Signed-off-by: niuhui --- .../distributed_audio/mfc_test/distributedaudiotest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hdf_service/distributed_audio/mfc_test/distributedaudiotest.cpp b/hdf_service/distributed_audio/mfc_test/distributedaudiotest.cpp index de2c7306..e933d556 100644 --- a/hdf_service/distributed_audio/mfc_test/distributedaudiotest.cpp +++ b/hdf_service/distributed_audio/mfc_test/distributedaudiotest.cpp @@ -628,11 +628,11 @@ void HandleAudioEvent(const std::string& cmd, std::string& cmdResString, struct } } -int GenerateFifoName(int& clientFd, char clientFifo[], struct Response& resp, +static int GenerateFifoName(int& clientFd, char clientFifo[], struct Response& resp, std::string& cmdResString, struct Request& req) { if (snprintf_s(clientFifo, CLIENT_FIFO_NAME_LEN, CLIENT_FIFO_NAME_LEN, - CLIENT_FIFO_TEMPLATE.c_str(), (long)(req.pid)) < 0) { + CLIENT_FIFO_TEMPLATE.c_str(), static_cast(req.pid)) < 0) { return -1; } clientFd = open(clientFifo, O_WRONLY); -- Gitee