comparison src/log.c @ 7613:62d11301b8a6

[gaim-migrate @ 8237] make sure to show that last log from the old log format committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 23 Nov 2003 20:02:45 +0000
parents 3ae88e96dde2
children a4acf41898c1
comparison
equal deleted inserted replaced
7612:3ae88e96dde2 7613:62d11301b8a6
742 tm.tm_year = g_date_get_year(&gdate) - 1900; 742 tm.tm_year = g_date_get_year(&gdate) - 1900;
743 log->time = mktime(&tm); 743 log->time = mktime(&tm);
744 744
745 } 745 }
746 } 746 }
747
748 if (data) {
749 data->length = ftell(file) - data->offset;
750 if (data->length != 0)
751 list = g_list_append(list, log);
752 else
753 gaim_log_free(log);
754 }
755
747 fclose(file); 756 fclose(file);
748 return list; 757 return list;
749 } 758 }
750 759
751 char * old_logger_read (GaimLog *log, GaimLogReadFlags *flags) 760 char * old_logger_read (GaimLog *log, GaimLogReadFlags *flags)