If you are on a ship, that pole on which the flag flies is called a mast. So for ships lowering their flags to honor the death of a government official, it's appropriately called "half-mast." If that pole is stuck in the ground or attached to a building, then it is "half-staff." Either way, it means the same thing.