"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dates.c" between
mairix-0.23.tar.gz and mairix-0.24.tar.gz

About: mairix is a program for indexing and searching email messages stored in maildir, MH or mbox folders.

dates.c  (mairix-0.23):dates.c  (mairix-0.24)
skipping to change at line 339 skipping to change at line 339
*has_start = *has_end = 0; *has_start = *has_end = 0;
nullchar = in; nullchar = in;
while (*nullchar) nullchar++; while (*nullchar) nullchar++;
time(&now); time(&now);
start_tm = end_tm = *localtime(&now); start_tm = end_tm = *localtime(&now);
start_tm.tm_hour = 0; start_tm.tm_hour = 0;
start_tm.tm_min = 0; start_tm.tm_min = 0;
start_tm.tm_sec = 0; start_tm.tm_sec = 0;
start_tm.tm_isdst = -1;
end_tm.tm_hour = 23; end_tm.tm_hour = 23;
end_tm.tm_min = 59; end_tm.tm_min = 59;
end_tm.tm_sec = 59; end_tm.tm_sec = 59;
end_tm.tm_isdst = -1;
hyphen = strchr(in, '-'); hyphen = strchr(in, '-');
if (!hyphen) { if (!hyphen) {
/* Start and end are the same. */ /* Start and end are the same. */
*has_start = *has_end = 1; *has_start = *has_end = 1;
status = scan_date_expr(in, nullchar, &start_tm, &end_tm); status = scan_date_expr(in, nullchar, &start_tm, &end_tm);
if (status) return status; if (status) return status;
*start = mktime(&start_tm); *start = mktime(&start_tm);
*end = mktime(&end_tm); *end = mktime(&end_tm);
return 0; return 0;
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)