[PATCH xserver 3/4] dix: Convert ResourceClientBits to a variable

Alan Coopersmith alan.coopersmith at oracle.com
Sat Apr 30 14:37:35 UTC 2016


On 04/29/16 11:22 AM, Adam Jackson wrote:
> @@ -871,6 +883,7 @@ ProcessCommandLine(int argc, char *argv[])
>   		    LimitClients != 512) {
>   		    FatalError("maxclients must be one of 64, 128, 256 or 512\n");
>   		}
> +                ResourceClientBits = ilog2(LimitClients);
>   	    } else
>   		UseMsg();
>   	}
>

Don't you also need to initialize the default case somewhere when
-maxclients isn't used?

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list