afs_cb_result_handler, cc);
}
-/* returns success even on errors to keep the loop going */
+/* returns success on non-fatal errors to keep the loop going */
static int check_audio_file(struct osl_row *row, void *data)
{
char *path;
if (ret < 0) {
para_printf(pb, "%s\n", para_strerror(-ret));
- return 0;
+ return ret;
}
if (stat(path, &statbuf) < 0)
para_printf(pb, "%s: stat error (%s)\n", path, strerror(errno));
* \param fd The afs socket.
* \param query Unused.
*
- * \return This function always returns zero.
+ * \return Standard. Inconsistencies are reported but not regarded as an error.
*
* \sa com_check().
*/
int aft_check_callback(int fd, __a_unused const struct osl_object *query)
{
+ int ret;
struct para_buffer pb = {
.max_size = shm_get_shmmax(),
.private_data = &(struct afs_max_size_handler_data) {
.max_size_handler = afs_max_size_handler
};
para_printf(&pb, "checking audio file table...\n");
- audio_file_loop(&pb, check_audio_file);
+ ret = audio_file_loop(&pb, check_audio_file);
flush_and_free_pb(&pb);
- return 0;
+ return ret;
}
/**