calendar

BSD calendar reimplementation
git clone https://git.ce9e.org/calendar.git

commit
e07bfd7970e5bd1ff4d4d2cf056758f9f527bee2
parent
a6bd4a41e08983d7d67ace82935f726ec86516ec
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-05-18 15:52
fix missing return warning

Diffstat

M calendar.c 4 +++-

1 files changed, 3 insertions, 1 deletions


diff --git a/calendar.c b/calendar.c

@@ -200,7 +200,6 @@ bool is_match(struct tpl tpl, struct tm date) {
  200   200 
  201   201 void invalid_date(char *s) {
  202   202 	fprintf(stderr, "Error: Invalid date template: %s\n", s);
  203    -1 	exit(1);
  204   203 }
  205   204 
  206   205 struct tpl parse_date(char *s) {
@@ -213,6 +212,7 @@ struct tpl parse_date(char *s) {
  213   212 		char *s_n = strtok(NULL, "");
  214   213 		if (s_n == NULL) {
  215   214 			invalid_date(s);
   -1   215 			exit(1);
  216   216 		}
  217   217 		n = atoi(s_n);
  218   218 	} else if (strchr(s, '-')) {
@@ -220,6 +220,7 @@ struct tpl parse_date(char *s) {
  220   220 		char *s_n = strtok(NULL, "");
  221   221 		if (s_n == NULL) {
  222   222 			invalid_date(s);
   -1   223 			exit(1);
  223   224 		}
  224   225 		n = -atoi(s_n);
  225   226 	}
@@ -288,6 +289,7 @@ struct tpl parse_date(char *s) {
  288   289 	}
  289   290 
  290   291 	invalid_date(s);
   -1   292 	exit(1);
  291   293 }
  292   294 
  293   295 struct line *parse_line(char *s_line) {