rlaager / docsis

This program encodes a DOCSIS binary configuration file from a human-readable text configuration file.
http://docsis.sourceforge.net
GNU General Public License v2.0
114 stars 70 forks source link

-nohash printed both the commented and uncommented hashes #38

Closed nickhilliard closed 8 years ago

nickhilliard commented 8 years ago

The -nohash CLI argument printed out both the commented and uncommented hashes. This patch fixes that. goto is used instead of nested if() statement because it's cleaner and makes the program flow easier to understand.