summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorRik Faith <faith@alephnull.com>2002-08-06 18:00:57 +0000
committerRik Faith <faith@alephnull.com>2002-08-06 18:00:57 +0000
commit977b420d5dc66db3d4335132861a1eff3747b49a (patch)
treed4ee3c06fccda33c2be176a152714bc72c2160ab /shared-core
parent881a9b214d033a1e153f61996645bdaa37eb87d8 (diff)
Updates from Rusty Russell to:
1) Remove redundant header inclusion 2) Silence bitop on non-long argument warnings (change int to long) 3) Move to ISO C (gcc 2.6) initializers (accepted by older gccs also) All of these are syntax changes that should not impact functionality.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/mga_drv.h2
-rw-r--r--shared-core/mga_state.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/shared-core/mga_drv.h b/shared-core/mga_drv.h
index 51bc706e..0845009b 100644
--- a/shared-core/mga_drv.h
+++ b/shared-core/mga_drv.h
@@ -38,7 +38,7 @@ typedef struct drm_mga_primary_buffer {
u32 tail;
int space;
- int wrapped;
+ volatile long wrapped;
volatile u32 *status;
diff --git a/shared-core/mga_state.c b/shared-core/mga_state.c
index adf67de3..734432d5 100644
--- a/shared-core/mga_state.c
+++ b/shared-core/mga_state.c
@@ -37,7 +37,6 @@
#include "drm.h"
#include "mga_drm.h"
#include "mga_drv.h"
-#include "drm.h"
/* ================================================================