diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-04-08 21:10:07 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-04-08 21:10:07 +0000 |
commit | bb16df17674eafa5691e2ec645de78e6e407af24 (patch) | |
tree | 802c888ccf7834936b17f3c629df19e82581c9ca /src | |
parent | b303217c1459134e242e6078088088a2428547b8 (diff) |
move 'id' declaration so it's C compliant
Diffstat (limited to 'src')
-rw-r--r-- | src/glx/mini/dri_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/mini/dri_util.c b/src/glx/mini/dri_util.c index 86234111ac..2c3016f1e2 100644 --- a/src/glx/mini/dri_util.c +++ b/src/glx/mini/dri_util.c @@ -602,6 +602,7 @@ __driUtilCreateScreenNoDRM(struct DRIDriverRec *driver, psp->pFB = driverContext->FBAddress; psp->pSAREA = driverContext->pSAREA; } else { + int id; psp->fd = open("/dev/mem", O_RDWR, 0); /* * Map the framebuffer region. @@ -618,7 +619,6 @@ __driUtilCreateScreenNoDRM(struct DRIDriverRec *driver, /* * Map the SAREA region. Non-DRM drivers use a shmem SAREA */ - int id; id = shmget(driverContext->shared.hSAREA, driverContext->shared.SAREASize, 0); driverContext->pSAREA = shmat(id, NULL, 0); if (!driverContext->pSAREA) { |