law: 179. Reduction of warrant officer or non-commissioned officer.-When under the provisions of section 79 a warrant officer or a non-commissioned officer is deemed to be reduced to the ranks, such reduction shall, for the purpose of section 177, be treated as a punishment awarded by a sentence of a court-martial.