KDrive: Xephyr: DRI: Warning fixes
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
f534e6bea1
commit
754be1e2ec
|
@ -615,10 +615,10 @@ ProcXF86DRIQueryVersion (register ClientPtr client)
|
||||||
{
|
{
|
||||||
xXF86DRIQueryVersionReply rep;
|
xXF86DRIQueryVersionReply rep;
|
||||||
register int n;
|
register int n;
|
||||||
|
REQUEST_SIZE_MATCH(xXF86DRIQueryVersionReq);
|
||||||
|
|
||||||
EPHYR_LOG ("enter\n") ;
|
EPHYR_LOG ("enter\n") ;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xXF86DRIQueryVersionReq);
|
|
||||||
rep.type = X_Reply;
|
rep.type = X_Reply;
|
||||||
rep.length = 0;
|
rep.length = 0;
|
||||||
rep.sequenceNumber = client->sequence;
|
rep.sequenceNumber = client->sequence;
|
||||||
|
@ -643,10 +643,10 @@ ProcXF86DRIQueryDirectRenderingCapable (register ClientPtr client)
|
||||||
xXF86DRIQueryDirectRenderingCapableReply rep;
|
xXF86DRIQueryDirectRenderingCapableReply rep;
|
||||||
Bool isCapable;
|
Bool isCapable;
|
||||||
register int n;
|
register int n;
|
||||||
|
|
||||||
EPHYR_LOG ("enter\n") ;
|
|
||||||
REQUEST(xXF86DRIQueryDirectRenderingCapableReq);
|
REQUEST(xXF86DRIQueryDirectRenderingCapableReq);
|
||||||
REQUEST_SIZE_MATCH(xXF86DRIQueryDirectRenderingCapableReq);
|
REQUEST_SIZE_MATCH(xXF86DRIQueryDirectRenderingCapableReq);
|
||||||
|
|
||||||
|
EPHYR_LOG ("enter\n") ;
|
||||||
if (stuff->screen >= screenInfo.numScreens) {
|
if (stuff->screen >= screenInfo.numScreens) {
|
||||||
client->errorValue = stuff->screen;
|
client->errorValue = stuff->screen;
|
||||||
return BadValue;
|
return BadValue;
|
||||||
|
@ -681,10 +681,10 @@ ProcXF86DRIOpenConnection (register ClientPtr client)
|
||||||
xXF86DRIOpenConnectionReply rep;
|
xXF86DRIOpenConnectionReply rep;
|
||||||
drm_handle_t hSAREA;
|
drm_handle_t hSAREA;
|
||||||
char* busIdString;
|
char* busIdString;
|
||||||
|
|
||||||
EPHYR_LOG ("enter\n") ;
|
|
||||||
REQUEST(xXF86DRIOpenConnectionReq);
|
REQUEST(xXF86DRIOpenConnectionReq);
|
||||||
REQUEST_SIZE_MATCH(xXF86DRIOpenConnectionReq);
|
REQUEST_SIZE_MATCH(xXF86DRIOpenConnectionReq);
|
||||||
|
|
||||||
|
EPHYR_LOG ("enter\n") ;
|
||||||
if (stuff->screen >= screenInfo.numScreens) {
|
if (stuff->screen >= screenInfo.numScreens) {
|
||||||
client->errorValue = stuff->screen;
|
client->errorValue = stuff->screen;
|
||||||
return BadValue;
|
return BadValue;
|
||||||
|
@ -722,10 +722,10 @@ static int
|
||||||
ProcXF86DRIAuthConnection (register ClientPtr client)
|
ProcXF86DRIAuthConnection (register ClientPtr client)
|
||||||
{
|
{
|
||||||
xXF86DRIAuthConnectionReply rep;
|
xXF86DRIAuthConnectionReply rep;
|
||||||
|
|
||||||
EPHYR_LOG ("enter\n") ;
|
|
||||||
REQUEST(xXF86DRIAuthConnectionReq);
|
REQUEST(xXF86DRIAuthConnectionReq);
|
||||||
REQUEST_SIZE_MATCH(xXF86DRIAuthConnectionReq);
|
REQUEST_SIZE_MATCH(xXF86DRIAuthConnectionReq);
|
||||||
|
|
||||||
|
EPHYR_LOG ("enter\n") ;
|
||||||
if (stuff->screen >= screenInfo.numScreens) {
|
if (stuff->screen >= screenInfo.numScreens) {
|
||||||
client->errorValue = stuff->screen;
|
client->errorValue = stuff->screen;
|
||||||
return BadValue;
|
return BadValue;
|
||||||
|
@ -748,9 +748,9 @@ ProcXF86DRIAuthConnection (register ClientPtr client)
|
||||||
static int
|
static int
|
||||||
ProcXF86DRICloseConnection (register ClientPtr client)
|
ProcXF86DRICloseConnection (register ClientPtr client)
|
||||||
{
|
{
|
||||||
EPHYR_LOG ("enter\n") ;
|
|
||||||
REQUEST(xXF86DRICloseConnectionReq);
|
REQUEST(xXF86DRICloseConnectionReq);
|
||||||
REQUEST_SIZE_MATCH(xXF86DRICloseConnectionReq);
|
REQUEST_SIZE_MATCH(xXF86DRICloseConnectionReq);
|
||||||
|
EPHYR_LOG ("enter\n") ;
|
||||||
if (stuff->screen >= screenInfo.numScreens) {
|
if (stuff->screen >= screenInfo.numScreens) {
|
||||||
client->errorValue = stuff->screen;
|
client->errorValue = stuff->screen;
|
||||||
return BadValue;
|
return BadValue;
|
||||||
|
@ -769,10 +769,10 @@ ProcXF86DRIGetClientDriverName (register ClientPtr client)
|
||||||
{
|
{
|
||||||
xXF86DRIGetClientDriverNameReply rep;
|
xXF86DRIGetClientDriverNameReply rep;
|
||||||
char* clientDriverName;
|
char* clientDriverName;
|
||||||
|
|
||||||
EPHYR_LOG ("enter\n") ;
|
|
||||||
REQUEST(xXF86DRIGetClientDriverNameReq);
|
REQUEST(xXF86DRIGetClientDriverNameReq);
|
||||||
REQUEST_SIZE_MATCH(xXF86DRIGetClientDriverNameReq);
|
REQUEST_SIZE_MATCH(xXF86DRIGetClientDriverNameReq);
|
||||||
|
|
||||||
|
EPHYR_LOG ("enter\n") ;
|
||||||
if (stuff->screen >= screenInfo.numScreens) {
|
if (stuff->screen >= screenInfo.numScreens) {
|
||||||
client->errorValue = stuff->screen;
|
client->errorValue = stuff->screen;
|
||||||
return BadValue;
|
return BadValue;
|
||||||
|
@ -811,10 +811,10 @@ ProcXF86DRICreateContext (register ClientPtr client)
|
||||||
VisualPtr visual;
|
VisualPtr visual;
|
||||||
int i=0;
|
int i=0;
|
||||||
unsigned long context_id=0;
|
unsigned long context_id=0;
|
||||||
|
|
||||||
EPHYR_LOG ("enter\n") ;
|
|
||||||
REQUEST(xXF86DRICreateContextReq);
|
REQUEST(xXF86DRICreateContextReq);
|
||||||
REQUEST_SIZE_MATCH(xXF86DRICreateContextReq);
|
REQUEST_SIZE_MATCH(xXF86DRICreateContextReq);
|
||||||
|
|
||||||
|
EPHYR_LOG ("enter\n") ;
|
||||||
if (stuff->screen >= screenInfo.numScreens) {
|
if (stuff->screen >= screenInfo.numScreens) {
|
||||||
client->errorValue = stuff->screen;
|
client->errorValue = stuff->screen;
|
||||||
return BadValue;
|
return BadValue;
|
||||||
|
@ -852,10 +852,10 @@ ProcXF86DRICreateContext (register ClientPtr client)
|
||||||
static int
|
static int
|
||||||
ProcXF86DRIDestroyContext (register ClientPtr client)
|
ProcXF86DRIDestroyContext (register ClientPtr client)
|
||||||
{
|
{
|
||||||
EPHYR_LOG ("enter\n") ;
|
|
||||||
|
|
||||||
REQUEST(xXF86DRIDestroyContextReq);
|
REQUEST(xXF86DRIDestroyContextReq);
|
||||||
REQUEST_SIZE_MATCH(xXF86DRIDestroyContextReq);
|
REQUEST_SIZE_MATCH(xXF86DRIDestroyContextReq);
|
||||||
|
EPHYR_LOG ("enter\n") ;
|
||||||
|
|
||||||
if (stuff->screen >= screenInfo.numScreens) {
|
if (stuff->screen >= screenInfo.numScreens) {
|
||||||
client->errorValue = stuff->screen;
|
client->errorValue = stuff->screen;
|
||||||
return BadValue;
|
return BadValue;
|
||||||
|
@ -1024,10 +1024,10 @@ ProcXF86DRICreateDrawable (ClientPtr client)
|
||||||
EphyrWindowPair *pair=NULL ;
|
EphyrWindowPair *pair=NULL ;
|
||||||
EphyrDRIWindowPrivPtr win_priv=NULL;
|
EphyrDRIWindowPrivPtr win_priv=NULL;
|
||||||
int rc=0, remote_win=0;
|
int rc=0, remote_win=0;
|
||||||
|
|
||||||
EPHYR_LOG ("enter\n") ;
|
|
||||||
REQUEST(xXF86DRICreateDrawableReq);
|
REQUEST(xXF86DRICreateDrawableReq);
|
||||||
REQUEST_SIZE_MATCH(xXF86DRICreateDrawableReq);
|
REQUEST_SIZE_MATCH(xXF86DRICreateDrawableReq);
|
||||||
|
|
||||||
|
EPHYR_LOG ("enter\n") ;
|
||||||
if (stuff->screen >= screenInfo.numScreens) {
|
if (stuff->screen >= screenInfo.numScreens) {
|
||||||
client->errorValue = stuff->screen;
|
client->errorValue = stuff->screen;
|
||||||
return BadValue;
|
return BadValue;
|
||||||
|
@ -1083,12 +1083,12 @@ ProcXF86DRICreateDrawable (ClientPtr client)
|
||||||
static int
|
static int
|
||||||
ProcXF86DRIDestroyDrawable (register ClientPtr client)
|
ProcXF86DRIDestroyDrawable (register ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xXF86DRIDestroyDrawableReq);
|
|
||||||
DrawablePtr drawable=NULL;
|
DrawablePtr drawable=NULL;
|
||||||
WindowPtr window=NULL;
|
WindowPtr window=NULL;
|
||||||
EphyrWindowPair *pair=NULL;
|
EphyrWindowPair *pair=NULL;
|
||||||
REQUEST_SIZE_MATCH(xXF86DRIDestroyDrawableReq);
|
|
||||||
int rc=0;
|
int rc=0;
|
||||||
|
REQUEST(xXF86DRIDestroyDrawableReq);
|
||||||
|
REQUEST_SIZE_MATCH(xXF86DRIDestroyDrawableReq);
|
||||||
|
|
||||||
EPHYR_LOG ("enter\n") ;
|
EPHYR_LOG ("enter\n") ;
|
||||||
if (stuff->screen >= screenInfo.numScreens) {
|
if (stuff->screen >= screenInfo.numScreens) {
|
||||||
|
@ -1134,11 +1134,11 @@ ProcXF86DRIGetDrawableInfo (register ClientPtr client)
|
||||||
int X=0, Y=0, W=0, H=0, backX=0, backY=0, rc=0, i=0;
|
int X=0, Y=0, W=0, H=0, backX=0, backY=0, rc=0, i=0;
|
||||||
drm_clip_rect_t *clipRects=NULL;
|
drm_clip_rect_t *clipRects=NULL;
|
||||||
drm_clip_rect_t *backClipRects=NULL;
|
drm_clip_rect_t *backClipRects=NULL;
|
||||||
|
REQUEST(xXF86DRIGetDrawableInfoReq);
|
||||||
|
REQUEST_SIZE_MATCH(xXF86DRIGetDrawableInfoReq);
|
||||||
|
|
||||||
EPHYR_LOG ("enter\n") ;
|
EPHYR_LOG ("enter\n") ;
|
||||||
memset (&rep, 0, sizeof (rep)) ;
|
memset (&rep, 0, sizeof (rep)) ;
|
||||||
REQUEST(xXF86DRIGetDrawableInfoReq);
|
|
||||||
REQUEST_SIZE_MATCH(xXF86DRIGetDrawableInfoReq);
|
|
||||||
if (stuff->screen >= screenInfo.numScreens) {
|
if (stuff->screen >= screenInfo.numScreens) {
|
||||||
client->errorValue = stuff->screen;
|
client->errorValue = stuff->screen;
|
||||||
return BadValue;
|
return BadValue;
|
||||||
|
@ -1265,10 +1265,10 @@ ProcXF86DRIGetDeviceInfo (register ClientPtr client)
|
||||||
xXF86DRIGetDeviceInfoReply rep;
|
xXF86DRIGetDeviceInfoReply rep;
|
||||||
drm_handle_t hFrameBuffer;
|
drm_handle_t hFrameBuffer;
|
||||||
void *pDevPrivate;
|
void *pDevPrivate;
|
||||||
|
|
||||||
EPHYR_LOG ("enter\n") ;
|
|
||||||
REQUEST(xXF86DRIGetDeviceInfoReq);
|
REQUEST(xXF86DRIGetDeviceInfoReq);
|
||||||
REQUEST_SIZE_MATCH(xXF86DRIGetDeviceInfoReq);
|
REQUEST_SIZE_MATCH(xXF86DRIGetDeviceInfoReq);
|
||||||
|
|
||||||
|
EPHYR_LOG ("enter\n") ;
|
||||||
if (stuff->screen >= screenInfo.numScreens) {
|
if (stuff->screen >= screenInfo.numScreens) {
|
||||||
client->errorValue = stuff->screen;
|
client->errorValue = stuff->screen;
|
||||||
return BadValue;
|
return BadValue;
|
||||||
|
|
Loading…
Reference in New Issue