summaryrefslogtreecommitdiff
blob: 92bbd11f1b494e0df02029f16686815686b355e1 (plain)
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
32
33
34
35
36
37
38
39
40
41
42
diff -urNd suspend-0.8/resume.c suspend-0.8~/resume.c
--- suspend-0.8/resume.c	2007-12-31 18:50:12.000000000 +0000
+++ suspend-0.8~/resume.c	2009-03-20 01:24:33.000000000 +0000
@@ -550,7 +550,7 @@
 			    struct swsusp_header *swsusp_header)
 {
 	unsigned int size = sizeof(struct swsusp_header);
-	unsigned int shift = (resume_offset + 1) * page_size - size;
+	off_t shift = (resume_offset + 1) * page_size - size;
 	int fd, ret;
 
 	fd = open(resume_dev_name, O_RDWR);
@@ -585,7 +585,7 @@
 	char *buffer = (char *)mem_pool + page_size;
 	unsigned int nr_pages = 0;
 	unsigned int size = sizeof(struct swsusp_header);
-	unsigned int shift = (resume_offset + 1) * page_size - size;
+	off_t shift = (resume_offset + 1) * page_size - size;
 	char c;
 
 	error = read_area(fd, header, swsusp_header->image, page_size);
diff -urNd suspend-0.8/suspend.c suspend-0.8~/suspend.c
--- suspend-0.8/suspend.c	2007-12-31 18:50:12.000000000 +0000
+++ suspend-0.8~/suspend.c	2009-03-20 01:24:11.000000000 +0000
@@ -587,7 +587,7 @@
 {
 	int error = 0;
 	unsigned int size = sizeof(struct swsusp_header);
-	unsigned int shift = (resume_offset + 1) * page_size - size;
+	off_t shift = (resume_offset + 1) * page_size - size;
 
 	if (lseek(fd, shift, SEEK_SET) != shift)
 		return -EIO;
@@ -757,7 +757,7 @@
 {
 	int ret, error = 0;
 	unsigned int size = sizeof(struct swsusp_header);
-	unsigned int shift = (resume_offset + 1) * page_size - size;
+	off_t shift = (resume_offset + 1) * page_size - size;
 
 	if (lseek(fd, shift, SEEK_SET) != shift)
 		return -EIO;