diff options
Diffstat (limited to 'net-misc/logjam/files/logjam-4.4.0-offline-sync.patch')
-rw-r--r-- | net-misc/logjam/files/logjam-4.4.0-offline-sync.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net-misc/logjam/files/logjam-4.4.0-offline-sync.patch b/net-misc/logjam/files/logjam-4.4.0-offline-sync.patch new file mode 100644 index 000000000000..0961c65806c9 --- /dev/null +++ b/net-misc/logjam/files/logjam-4.4.0-offline-sync.patch @@ -0,0 +1,16 @@ +--- orig/protocol/liblivejournal/livejournal/sync.c ++++ mod/protocol/liblivejournal/livejournal/sync.c +@@ -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. */ + |