# HG changeset patch # User Sebastien Jodogne # Date 1660658999 -7200 # Node ID 25844bc0b2cbad5749b0ae2593cc01364942f2da # Parent a342e561c29d20c6e997fa7bd5657e57b669ffd1 fix signature of OrthancPluginSendHttpStatus() for the "body" argument diff -r a342e561c29d -r 25844bc0b2cb OrthancServer/Plugins/Engine/OrthancPlugins.cpp --- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Tue Aug 16 12:46:46 2022 +0200 +++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Tue Aug 16 16:09:59 2022 +0200 @@ -2979,7 +2979,7 @@ if (p.bodySize > 0 && p.body != NULL) { - translatedOutput.SendStatus(status, p.body, p.bodySize); + translatedOutput.SendStatus(status, reinterpret_cast(p.body), p.bodySize); } else { diff -r a342e561c29d -r 25844bc0b2cb OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h --- a/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h Tue Aug 16 12:46:46 2022 +0200 +++ b/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h Tue Aug 16 16:09:59 2022 +0200 @@ -3830,7 +3830,7 @@ { OrthancPluginRestOutput* output; uint16_t status; - const char* body; + const void* body; uint32_t bodySize; } _OrthancPluginSendHttpStatus; @@ -3860,7 +3860,7 @@ OrthancPluginContext* context, OrthancPluginRestOutput* output, uint16_t status, - const char* body, + const void* body, uint32_t bodySize) { _OrthancPluginSendHttpStatus params;