Fix -Wunused-variable 'FD' by using it instead of ND when they're equal but FD
has a more precise type.