nausea

curses audio visualizer
git clone git://git.2f30.org/nausea
Log | Files | Refs | README | LICENSE

commit cb4abe8e6a5d95b7cc23022c58e4b6b856708c4c
parent 619a1d70e00ccee408621350dbe01c3d91564eef
Author: lostd <lostd@2f30.org>
Date:   Mon, 15 Sep 2014 12:07:10 +0100

No need for integer conversion

Diffstat:
Mnausea.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/nausea.c b/nausea.c @@ -442,14 +442,14 @@ main(int argc, char *argv[]) if (*++argv == NULL) usage(); argc--; - switch (atoi(argv[0])) { - case 1: + switch (*argv[0]) { + case '1': draw = draw_spectrum; break; - case 2: + case '2': draw = draw_wave; break; - case 3: + case '3': draw = draw_fountain; break; }