vrseasons
diff src/opt.cc @ 1:65c2e37c48b2
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 12 Apr 2015 03:39:55 +0300 |
parents | 393ef1143c9c |
children |
line diff
1.1 --- a/src/opt.cc Tue Apr 07 11:16:56 2015 +0300 1.2 +++ b/src/opt.cc Sun Apr 12 03:39:55 2015 +0300 1.3 @@ -1,4 +1,5 @@ 1.4 #include <stdio.h> 1.5 +#include <string.h> 1.6 #include "opt.h" 1.7 1.8 enum { 1.9 @@ -58,11 +59,12 @@ 1.10 } 1.11 } 1.12 } 1.13 + return true; 1.14 } 1.15 1.16 static int get_option(const char *str) 1.17 { 1.18 - for(int i=0; optname[i], i++) { 1.19 + for(int i=0; optname[i]; i++) { 1.20 if(strcmp(str, optname[i]) == 0) { 1.21 return i; 1.22 }