bday
diff birthday.c @ 6:fc6e40f7bd5a
minor stuff
author | meillo@marmaro.de |
---|---|
date | Mon, 17 Dec 2007 16:31:40 +0100 |
parents | 5af6bf2cb271 |
children |
line diff
1.1 --- a/birthday.c Mon Dec 17 15:09:03 2007 +0100 1.2 +++ b/birthday.c Mon Dec 17 16:31:40 2007 +0100 1.3 @@ -32,12 +32,11 @@ 1.4 #include "birthday.h" 1.5 1.6 1.7 -int main(int argc, char* argv[]) 1.8 -{ 1.9 - struct event *evl; /* evl => event list */ 1.10 +int main(int argc, char* argv[]) { 1.11 1.12 while (--argc > 0 && (*++argv)[0] == '-') { 1.13 if (strcmp(argv[0], "-W") == 0) { 1.14 + /* TODO: catch if no value given */ 1.15 iDWarn = atoi((++argv)[0]); 1.16 argc--; 1.17 } else { 1.18 @@ -46,8 +45,7 @@ 1.19 } 1.20 } 1.21 1.22 - evl = readlist(); /* read and format entries */ 1.23 - liststrings(evl, puts); 1.24 + liststrings(readlist(), puts); 1.25 1.26 return 0; 1.27 }