xfree86: don't mix declarations and code
This commit is contained in:
parent
aec4c0caca
commit
17c8cb5099
|
@ -104,10 +104,10 @@ void DoShowOptions (void) {
|
|||
initData = LoaderSymbol (pSymbol);
|
||||
if (initData) {
|
||||
XF86ModuleVersionInfo *vers = initData->vers;
|
||||
OptionInfoPtr p;
|
||||
ErrorF ("Driver[%d]:%s[%s] {\n",
|
||||
i,xf86DriverList[i]->driverName,vers->vendor
|
||||
);
|
||||
OptionInfoPtr p;
|
||||
for (p = pOption; p->name != NULL; p++) {
|
||||
const char *opttype = optionTypeToSting(p->type);
|
||||
char *optname = xalloc(strlen(p->name) + 2 + 1);
|
||||
|
|
|
@ -406,8 +406,8 @@ ProcXF86DRIDestroyDrawable(
|
|||
{
|
||||
REQUEST(xXF86DRIDestroyDrawableReq);
|
||||
DrawablePtr pDrawable;
|
||||
REQUEST_SIZE_MATCH(xXF86DRIDestroyDrawableReq);
|
||||
int rc;
|
||||
REQUEST_SIZE_MATCH(xXF86DRIDestroyDrawableReq);
|
||||
|
||||
if (stuff->screen >= screenInfo.numScreens) {
|
||||
client->errorValue = stuff->screen;
|
||||
|
|
|
@ -102,7 +102,7 @@ static DevPrivateKey ShadowGCKey = &ShadowGCKeyIndex;
|
|||
#define GET_SCREEN_PRIVATE(pScreen) \
|
||||
(ShadowScreenPtr)dixLookupPrivate(&(pScreen)->devPrivates, ShadowScreenKey)
|
||||
#define GET_GC_PRIVATE(pGC) \
|
||||
(ShadowGCPtr)dixLookupPrivate(&(pGC)->devPrivates, ShadowGCKey);
|
||||
(ShadowGCPtr)dixLookupPrivate(&(pGC)->devPrivates, ShadowGCKey)
|
||||
|
||||
#define SHADOW_GC_FUNC_PROLOGUE(pGC)\
|
||||
ShadowGCPtr pGCPriv = GET_GC_PRIVATE(pGC);\
|
||||
|
|
Loading…
Reference in New Issue
Block a user