dt_buf_error
extern int dt_buf_error(const dt_buf_t *);
if ((i = dt_buf_error(&ddo->ddo_secs)) != 0) {