Use proper type (struct smbprofile_stats_time_async) to reset-clean
upon ASYNC_END macro.
Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Vinit Agnihotri <vagnihot@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
#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)