]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - isdn4k-utils/patches/013-isdn4k-utils-statfs.patch
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/ms/ipfire-3.x.git] / isdn4k-utils / patches / 013-isdn4k-utils-statfs.patch
CommitLineData
bd1c5dc2
MT
1--- isdn4k-utils-CVS-2005-03-09/vbox/src/vboxgetty.c.old 2000-11-30 16:35:20.000000000 +0100
2+++ isdn4k-utils-CVS-2005-03-09/vbox/src/vboxgetty.c 2005-04-20 16:30:31.000000000 +0200
3@@ -434,7 +434,7 @@
4 static int check_spool_space(unsigned long need)
5 {
6 struct statfs stat;
7- unsigned long have;
8+ unsigned long long have;
9
10 log(L_DEBUG, "Checking free space on \"%s\"...\n", setup.spool);
11
12@@ -449,7 +449,7 @@
13 {
14 have = (stat.f_bfree * stat.f_bsize);
15
16- log_line(L_JUNK, "%ld bytes available; %ld bytes needed... ", have, need);
17+ log_line(L_JUNK, "%lld bytes available; %ld bytes needed... ", have, need);
18
19 if (have >= need)
20 {
21--- isdn4k-utils-CVS-2005-03-09/eurofile/src/wuauth/extensions.h.old 2005-04-20 16:35:37.000000000 +0200
22+++ isdn4k-utils-CVS-2005-03-09/eurofile/src/wuauth/extensions.h 2005-04-20 16:37:02.000000000 +0200
23@@ -42,3 +42,8 @@
24 #define ARG8 entry->arg[8]
25 #define ARG9 entry->arg[9]
26 #define ARG entry->arg
27+
28+#if defined(HAVE_STATVFS) || defined(HAVE_SYS_VFS) || defined (HAVE_SYS_MOUNT)
29+unsigned long long getSize(s);
30+#endif
31+
32--- isdn4k-utils-CVS-2005-03-09/eurofile/src/wuauth/extensions.c.old 2005-04-20 16:20:17.000000000 +0200
33+++ isdn4k-utils-CVS-2005-03-09/eurofile/src/wuauth/extensions.c 2005-04-20 16:24:56.000000000 +0200
34@@ -154,7 +154,7 @@
35 }
36
37 #if defined(HAVE_STATVFS)
38-int getSize(s)
39+unsigned long long getSize(s)
40 char *s;
41 {
42 int c;
43@@ -163,10 +163,10 @@
44 if (( c = statvfs(s, &buf)) != 0)
45 return(0);
46
47- return(buf.f_bavail * buf.f_frsize / 1024);
48+ return((unsigned long long)(buf.f_bavail * buf.f_frsize / 1024));
49 }
50 #elif defined(HAVE_SYS_VFS) || defined (HAVE_SYS_MOUNT)
51-int getSize(s)
52+unsigned long long getSize(s)
53 char *s;
54 {
55 int c;
56@@ -175,7 +175,7 @@
57 if (( c = statfs(s, &buf)) != 0)
58 return(0);
59
60- return(buf.f_bavail * buf.f_bsize / 1024);
61+ return((unsigned long long)(buf.f_bavail * buf.f_bsize / 1024));
62 }
63 #endif
64
65@@ -236,7 +236,7 @@
66
67 case 'F':
68 #if defined(HAVE_STATVFS) || defined(HAVE_SYS_VFS) || defined(HAVE_SYS_MOUNT)
69- sprintf(outptr, "%lu", getSize("."));
70+ sprintf(outptr, "%llu",(unsigned long long)getSize("."));
71 #endif
72 break;
73
74--- isdn4k-utils-CVS-2005-03-09/eurofile/src/wuauth/divfunc.c.old 2001-03-01 15:59:14.000000000 +0100
75+++ isdn4k-utils-CVS-2005-03-09/eurofile/src/wuauth/divfunc.c 2005-04-20 16:34:26.000000000 +0200
76@@ -121,7 +121,7 @@
77
78 case 'F':
79 #if defined(HAVE_STATVFS) || defined(HAVE_SYS_VFS) || defined(HAVE_SYS_MOUNT)
80- sprintf(outptr, "%lu", getSize("."));
81+ sprintf(outptr, "%llu",(unsigned long long)getSize("."));
82 #endif
83 break;
84