summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2004-12-08 06:29:59 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2004-12-08 06:29:59 +0000
commit1d906ac9cd583a08d1950b3708cda21ebc46905a (patch)
tree54087478c01bc68609a136ad13dbb6cd74d1dc63 /os
parent6482a7071ca163d107ed9bfa7211c6c801dbeb4b (diff)
//bugs.freedesktop.org/show_bug.cgi?id=1489) attachment #979
(https://bugs.freedesktop.org/attachment.cgi?id=979): Use |long| instead of |int| for BIGREQUESTS commandline option.
Diffstat (limited to 'os')
-rw-r--r--os/utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/utils.c b/os/utils.c
index 6c2e1ea7e..2dcf8a5e0 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -1,4 +1,4 @@
-/* $XdotOrg: xc/programs/Xserver/os/utils.c,v 1.6 2004/08/11 22:27:50 kem Exp $ */
+/* $XdotOrg: xc/programs/Xserver/os/utils.c,v 1.6.2.1 2004/12/08 05:28:12 gisburn Exp $ */
/* $Xorg: utils.c,v 1.5 2001/02/09 02:05:24 xorgcvs Exp $ */
/*
@@ -1008,11 +1008,11 @@ ProcessCommandLine(int argc, char *argv[])
defaultBackingStore = WhenMapped;
else if ( strcmp( argv[i], "-maxbigreqsize") == 0) {
if(++i < argc) {
- int reqSizeArg = atoi(argv[i]);
+ long reqSizeArg = atol(argv[i]);
/* Request size > 128MB does not make much sense... */
- if( reqSizeArg > 0 && reqSizeArg < 128 ) {
- maxBigRequestSize = (reqSizeArg * 1048576) - 1;
+ if( reqSizeArg > 0L && reqSizeArg < 128L ) {
+ maxBigRequestSize = (reqSizeArg * 1048576L) - 1L;
}
else
{