Dyott, William, Brigadier-General