From 2a2679d7a0674dde967379808f2e2ed24c26621f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 26 Jan 2023 15:46:57 -0500 Subject: [PATCH] MT#56493 update return type to bool Change-Id: I37027568255d54cdfcdb324d971c8836af87b25e --- recording-daemon/output.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/recording-daemon/output.c b/recording-daemon/output.c index a171a41fb..64603d16e 100644 --- a/recording-daemon/output.c +++ b/recording-daemon/output.c @@ -20,7 +20,7 @@ int mp3_bitrate; -static int output_shutdown(output_t *output); +static bool output_shutdown(output_t *output); @@ -293,17 +293,17 @@ err: } -static int output_shutdown(output_t *output) { +static bool output_shutdown(output_t *output) { if (!output) - return 0; + return false; if (!output->fmtctx) - return 0; + return false; - int ret = 0; + bool ret = false; if (output->fmtctx->pb) { av_write_trailer(output->fmtctx); avio_closep(&output->fmtctx->pb); - ret = 1; + ret = true; if (output_chmod) if (chmod(output->filename, output_chmod)) ilog(LOG_WARN, "Failed to change file mode of '%s%s%s': %s",