utils/fifo8: change fatal errors from abort() to assert()
commitf71407ed2fe7a66aa52b1c49a0ebba311d887376
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 28 Jan 2021 22:17:27 +0000 (28 22:17 +0000)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 7 Feb 2021 20:38:20 +0000 (7 20:38 +0000)
tree773b3edfd1535f2e1ebd414292a9cb153b69f4e0
parent5b19cb63d9dfda41b412373b8c9fe14641bcab60
utils/fifo8: change fatal errors from abort() to assert()

Developer errors are better represented with assert() rather than abort(). Also
improve the strictness of the checks by using range checks within the assert()
rather than converting the existing equality checks to inequality checks.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210121102518.20112-1-mark.cave-ayland@ilande.co.uk>
util/fifo8.c