Ticket 51177 - fix warnings
Bug Description: Humans make mistakes. A lot of mistakes. In
the commit of 51177 I made a mistake of not checking every
compiler warning, which led to a mistake that could cause
problems for others.
Fix Description: There is no fix for humans. But we can
fix the compiler warnings.
fixes #51177
https://pagure.io/389-ds-base/issue/51177
Author: William Brown <william@blackhats.net.au>
Review by: ???