bday

diff birthday.c @ 3:dc2f94280b01

new Makefile; removed MinWarn and MaxWarn; adjusted manpage
author meillo@marmaro.de
date Mon, 17 Dec 2007 11:28:40 +0100
parents 22b6e71de68e
children 5af6bf2cb271
line diff
     1.1 --- a/birthday.c	Mon Dec 17 08:02:15 2007 +0100
     1.2 +++ b/birthday.c	Mon Dec 17 11:28:40 2007 +0100
     1.3 @@ -36,7 +36,6 @@
     1.4  {
     1.5    char* fname = NULL;
     1.6    struct event *evl; /* evl => event list */
     1.7 -  char* opt = NULL;
     1.8  
     1.9    while (--argc > 0 && (*++argv)[0] == '-') {
    1.10      if (strcmp(argv[0], "-f") == 0) {
    1.11 @@ -45,14 +44,8 @@
    1.12  		} else if (strcmp(argv[0], "-W") == 0) {
    1.13  			iDWarn = atoi((++argv)[0]);
    1.14  			argc--;
    1.15 -		} else if (strcmp(argv[0], "-M") == 0) {
    1.16 -			iMaxWarn = atoi((++argv)[0]);
    1.17 -			argc--;
    1.18 -		} else if (strcmp(argv[0], "-m") == 0) {
    1.19 -			iMinWarn = atoi((++argv)[0]);
    1.20 -			argc--;
    1.21  		} else {
    1.22 -			fprintf(stderr, "unknown option %s\n", opt);
    1.23 +			fprintf(stderr, "unknown option %s\n", argv[0]);
    1.24  			exit(1);
    1.25  		}
    1.26  	}