From 977b420d5dc66db3d4335132861a1eff3747b49a Mon Sep 17 00:00:00 2001 From: Rik Faith Date: Tue, 6 Aug 2002 18:00:57 +0000 Subject: 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. --- shared-core/mga_drv.h | 2 +- shared-core/mga_state.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'shared-core') 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" /* ================================================================ -- cgit v1.2.3