summaryrefslogtreecommitdiff
path: root/security/gnome-keyring/files/patch-egg_egg-asn1x.c
blob: e581016941f3006c0fb24159663e60f85c12c4e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- egg/egg-asn1x.c.orig	2010-10-19 06:11:38.000000000 +0400
+++ egg/egg-asn1x.c	2013-11-04 22:37:43.000000000 +0400
@@ -1988,8 +1988,8 @@
 	guchar buf[sizeof (gulong)];
 	gint bytes, i, off;
 
-	for (i = 0; i < sizeof (ulong); ++i) {
-		off = sizeof (ulong) - (i + 1);
+	for (i = 0; i < sizeof (gulong); ++i) {
+		off = sizeof (gulong) - (i + 1);
 		buf[i] = (value >> (off * 8)) & 0xFF;
 	}
 
@@ -3746,7 +3746,7 @@
  * TIME PARSING
  */
 
-glong
+time_t
 egg_asn1x_parse_time_general (const gchar *time, gssize n_time)
 {
 	gboolean ret;
@@ -3777,7 +3777,7 @@
 	return value;
 }
 
-glong
+time_t
 egg_asn1x_parse_time_utc (const gchar *time, gssize n_time)
 {
 	gboolean ret;