161cc23 Ticket 49275 - shadow warnings for gcc7 - pass 1

Authored and Committed by William Brown 6 years ago
    Ticket 49275 - shadow warnings for gcc7 - pass 1
    
    Bug Description:  Shadow variables are where we redeclare a var
    of the same name in a child scope. In C this leads to a new var
    being created, but often represents a fault of the developer
    where they may have intended to use the outer scope.
    
    Fix Description:  Rename inner variables, move some from
    globals to stack in functions.
    
    https://pagure.io/389-ds-base/issue/49275
    
    Author: wibrown
    
    Review by: mreynolds (Thanks!)
    
        
file modified
+5 -4
file modified
+5 -3
file modified
+307 -301
file modified
+12 -12
file modified
+16 -16
file modified
+2 -2