mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
systemcmds: reflect: write return needs to be used for werror checks
This commit is contained in:
committed by
Daniel Agar
parent
05badb5d76
commit
0c5b25efc5
@@ -121,7 +121,9 @@ reflect_main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
write(1, buf, n);
|
if (write(1, buf, n) < 0) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
total += n;
|
total += n;
|
||||||
|
|||||||
Reference in New Issue
Block a user