Remove die() usage from track.c

This commit is contained in:
Rodrigo Arias 2023-03-10 09:53:09 +01:00 committed by Rodrigo Arias Mallo
parent f957461c92
commit 36bf4250f3

View File

@ -24,8 +24,10 @@ track_init(struct track *track, struct bay *bay, enum track_type type, int mode,
int n = ARRAYLEN(track->name); int n = ARRAYLEN(track->name);
int ret = vsnprintf(track->name, n, fmt, ap); int ret = vsnprintf(track->name, n, fmt, ap);
if (ret >= n) if (ret >= n) {
die("track name too long\n"); err("track name too long");
return -1;
}
va_end(ap); va_end(ap);
track->type = type; track->type = type;
@ -97,7 +99,8 @@ track_th_input_chan(struct track *track, struct chan *sel, struct chan *inp)
fsel = thread_select_active; fsel = thread_select_active;
break; break;
default: default:
die("wrong mode"); err("wrong mode");
return -1;
}; };
/* Create all thread tracking modes */ /* Create all thread tracking modes */