mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
treewide return code of X_SEND_REPLY_WITH_RPCBUF()
The macro will automatically return BadAlloc if the buffer is broken, otherwise Success. Thus, we don't need extra prior rpcbuf check. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
56cd66d147
commit
f8ad69698a
12
xkb/xkb.c
12
xkb/xkb.c
@@ -1492,8 +1492,7 @@ ProcXkbGetMap(ClientPtr client)
|
||||
swaps(&rep.totalActs);
|
||||
}
|
||||
|
||||
X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
return Success;
|
||||
return X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
}
|
||||
|
||||
/***====================================================================***/
|
||||
@@ -2808,8 +2807,7 @@ ProcXkbGetCompatMap(ClientPtr client)
|
||||
swaps(&rep.nTotalSI);
|
||||
}
|
||||
|
||||
X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
return Success;
|
||||
return X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3141,8 +3139,7 @@ ProcXkbGetIndicatorMap(ClientPtr client)
|
||||
swapl(&rep.realIndicators);
|
||||
}
|
||||
|
||||
X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
return Success;
|
||||
return X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3778,8 +3775,7 @@ ProcXkbGetNames(ClientPtr client)
|
||||
swapl(&rep.indicators);
|
||||
}
|
||||
|
||||
X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
return Success;
|
||||
return X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
|
||||
}
|
||||
|
||||
/***====================================================================***/
|
||||
|
||||
Reference in New Issue
Block a user