summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe McCann <joem@gentoo.org>2004-12-21 20:04:23 +0000
committerJoe McCann <joem@gentoo.org>2004-12-21 20:04:23 +0000
commitc5facc2b0a7b97b997fc3e2c58f60bb236c5052f (patch)
tree218fd61b3b7b98981e851eafb3192a5422b73368 /net-misc/logjam/files
parentInitial commit, ebuild by will@johnstonclan.net, closes bug #75065. (Manifest... (diff)
downloadgentoo-2-c5facc2b0a7b97b997fc3e2c58f60bb236c5052f.tar.gz
gentoo-2-c5facc2b0a7b97b997fc3e2c58f60bb236c5052f.tar.bz2
gentoo-2-c5facc2b0a7b97b997fc3e2c58f60bb236c5052f.zip
fixed diff syntax error
Diffstat (limited to 'net-misc/logjam/files')
-rw-r--r--net-misc/logjam/files/logjam-4.4.0-offline-sync.patch25
1 files changed, 12 insertions, 13 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
index 0961c65806c9..5d010136d36a 100644
--- a/net-misc/logjam/files/logjam-4.4.0-offline-sync.patch
+++ b/net-misc/logjam/files/logjam-4.4.0-offline-sync.patch
@@ -1,16 +1,15 @@
---- orig/protocol/liblivejournal/livejournal/sync.c
-+++ mod/protocol/liblivejournal/livejournal/sync.c
+--- 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. */
-
+ /* 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. */