updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libopensync-stable / libopensync.patch
blob224151b75e753b10a6b039f3983bc0d90f98d117
1 diff -aur libopensync-0.22/opensync/opensync_time.c libopensync-0.22.patched/opensync/opensync_time.c
2 --- libopensync-0.22/opensync/opensync_time.c 2007-03-27 13:49:18.000000000 +0200
3 +++ libopensync-0.22.patched/opensync/opensync_time.c 2011-07-16 10:27:49.528914597 +0200
4 @@ -889,16 +889,13 @@
5 osync_trace(TRACE_ENTRY, "%s(%s, %p)", __func__, vtime, tzid);
7 int year;
8 - char *newyear = NULL;
9 - time_t newyear_t, timestamp;
10 + time_t timestamp;
11 struct tm *std_changetime, *dst_changetime;
12 time_t dstStamp, stdStamp;
13 xmlNode *current = NULL;
15 sscanf(vtime, "%4d%*2d%*2dT%*2d%*d%*2d%*c", &year);
17 - newyear = g_strdup_printf("%4d0101T000000", year);
18 - newyear_t = osync_time_vtime2unix(newyear, 0);
19 timestamp = osync_time_vtime2unix(vtime, 0);
21 /* Handle XML Timezone field */
22 diff -aur libopensync-0.22/tools/osynctest.c libopensync-0.22.patched/tools/osynctest.c
23 --- libopensync-0.22/tools/osynctest.c 2007-03-27 13:49:19.000000000 +0200
24 +++ libopensync-0.22.patched/tools/osynctest.c 2011-07-16 10:28:19.242782087 +0200
25 @@ -81,8 +81,6 @@
26 double _second() /* note that some compilers like AIX xlf do not require the trailing '_' */
28 struct timeval tp;
29 - int rtn;
30 - rtn=gettimeofday(&tp, NULL);
32 return ((double)tp.tv_sec+(1.e-6)*tp.tv_usec);