if (opts->mode == LS_MODE_SHORT) {
para_printf(b, "%s\n", d->path);
- ret = 1;
- goto out;
- }
- if (opts->mode == LS_MODE_CHUNKS) {
- ret = print_chunk_table(d, b);
- goto out;
+ return 1;
}
+ if (opts->mode == LS_MODE_CHUNKS)
+ return print_chunk_table(d, b);
get_attribute_bitmap(&afsi->attributes, att_buf);
if (lls_opt_given(r_d))
sprintf(last_played_time, "%llu",
ret = get_local_time(&afsi->last_played, last_played_time,
sizeof(last_played_time), current_time, opts->mode);
if (ret < 0)
- goto out;
+ return ret;
}
get_duration_buf(afhi->seconds_total, duration_buf,
sizeof(duration_buf), opts);
last_played_time,
d->path
);
- ret = 1;
- goto out;
+ return 1;
}
if (opts->mode == LS_MODE_MBOX) {
const char *slash = strrchr(d->path, '/');
WRITE_STATUS_ITEM(b, SI_score, "%li\n", d->score);
ret = write_attribute_items(b, att_buf, afsi);
if (ret < 0)
- goto out;
+ return ret;
write_image_items(b, afsi);
write_lyrics_items(b, afsi);
hash2_to_asc(d->hash, asc_hash);
osl_close_disk_object(&lyrics_def);
}
}
-out:
- return ret;
+ return 1;
}
static void make_inode_status_items(struct para_buffer *pb)