Correct the type of db_cmd_loop_done.
authorjhibbits <jhibbits@FreeBSD.org>
Fri, 9 Sep 2016 04:16:53 +0000 (04:16 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Fri, 9 Sep 2016 04:16:53 +0000 (04:16 +0000)
commitb82c333bd3695476cd4668d12cd065916ef2fc2d
tree50124a32da010b41a3256ea88e17180585b25781
parent676f313a305267df04439a6198cef9f86059e33f
Correct the type of db_cmd_loop_done.

On big endian hardware that uses 1 byte bool a type mismatch of bool vs int will
cause the least signifcant byte of db_cmd_loop_done to be set, but the MSB to be
read, and read as 0.  This causes ddb to stay in an infinite loop.

MFC after: 1 week
sys/ddb/db_command.c