From 91be0e69695aa66e6ee7555edb9f6b8c8ae9d033 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Thu, 22 Apr 2021 14:07:12 +0100 Subject: [PATCH] Ensure declaration of function matches its definition It was defined as taking a size_t paramater when it was written, so the declarations used to call it should also use a size_t parameter to ensure the call is correct. --- modules/mod-script-pipe/PipeServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mod-script-pipe/PipeServer.cpp b/modules/mod-script-pipe/PipeServer.cpp index cdeaa3ccd..4d3066f39 100644 --- a/modules/mod-script-pipe/PipeServer.cpp +++ b/modules/mod-script-pipe/PipeServer.cpp @@ -8,7 +8,7 @@ const int nBuff = 1024; extern "C" int DoSrv( char * pIn ); -extern "C" int DoSrvMore( char * pOut, int nMax ); +extern "C" int DoSrvMore( char * pOut, size_t nMax ); void PipeServer() { @@ -119,7 +119,7 @@ const char fifotmpl[] = "/tmp/audacity_script_pipe.%s.%d"; const int nBuff = 1024; extern "C" int DoSrv( char * pIn ); -extern "C" int DoSrvMore( char * pOut, int nMax ); +extern "C" int DoSrvMore( char * pOut, size_t nMax ); void PipeServer() {