r2t2 : fix compile warning

This commit is contained in:
Georgi Gerganov
2022-05-04 18:26:51 +03:00
parent 444eebb2c5
commit 4365207bcb

View File

@@ -30,7 +30,10 @@ void processTone(int fd, double freq_hz, long duration_ms, bool useBeep, bool pr
if (useBeep) {
static char cmd[128];
snprintf(cmd, 128, "beep -f %g -l %ld", freq_hz, duration_ms);
system(cmd);
int ret = system(cmd);
if (ret != 0) {
printf("system(\"%s\") failed with %d\n", cmd, ret);
}
return;
}