From: Shachar Sharon Date: Sun, 5 Jul 2026 08:31:45 +0000 (+0300) Subject: profile: use proper type to cleanup async X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a90f031ff53408c790fe8204d1cc174b9306b763;p=thirdparty%2Fsamba.git profile: use proper type to cleanup async Use proper type (struct smbprofile_stats_time_async) to reset-clean upon ASYNC_END macro. Signed-off-by: Shachar Sharon Reviewed-by: Vinit Agnihotri Reviewed-by: Anoop C S Reviewed-by: Jennifer Sutton --- diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h index 40275262a7f..f6bdd4393b4 100644 --- a/source3/include/smbprofile.h +++ b/source3/include/smbprofile.h @@ -375,7 +375,7 @@ struct profile_stats { #define SMBPROFILE_TIME_ASYNC_END(_async) do { \ if ((_async).start != 0) { \ (_async).stats->time += profile_timestamp() - (_async).start; \ - (_async) = (struct smbprofile_stats_basic_async) {}; \ + (_async) = (struct smbprofile_stats_time_async) {}; \ smbprofile_dump_schedule(); \ } \ } while(0)