diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-06-20 16:04:23 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-06-20 16:04:23 +0000 |
commit | ad01a88a64bebb1a5356c5645ac081746323f039 (patch) | |
tree | 2d9cbdf5a5bb60f21b2cf859ba8823282483db08 /deskutils/logjam/files | |
parent | 542c9d11504fda8698c9bcf29636f96fde955a0e (diff) | |
download | ports-ad01a88a64bebb1a5356c5645ac081746323f039.tar.gz ports-ad01a88a64bebb1a5356c5645ac081746323f039.zip |
Notes
Diffstat (limited to 'deskutils/logjam/files')
-rw-r--r-- | deskutils/logjam/files/patch-src::sync.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/deskutils/logjam/files/patch-src::sync.c b/deskutils/logjam/files/patch-src::sync.c new file mode 100644 index 000000000000..5d010136d36a --- /dev/null +++ b/deskutils/logjam/files/patch-src::sync.c @@ -0,0 +1,15 @@ +--- protocol/liblivejournal/livejournal/sync.c.old Fri Jun 18 14:57:51 2004 ++++ protocol/liblivejournal/livejournal/sync.c Fri Jun 18 14:58:20 2004 +@@ -33,8 +33,10 @@ + static int + entry_date_compare_func(const void *a, const void *b) { + /* struct tm* cast needed to un-constify the times passed to mktime. */ +- const LJEntry *entrya = a; time_t timea = mktime((struct tm*)&entrya->time); +- const LJEntry *entryb = b; time_t timeb = mktime((struct tm*)&entryb->time); ++ const LJEntry *entrya = *(LJEntry **)a; ++ const LJEntry *entryb = *(LJEntry **)b; ++ time_t timea = mktime((struct tm*)&entrya->time); ++ time_t timeb = mktime((struct tm*)&entryb->time); + /* mktime actually converts the times to local time, which isn't + * quite correct, but since we're comparing times directly like this + * it should still sort the same way and timegm is potentially slower. */ |