diff options
author | Adam Jackson <ajax@nwnk.net> | 2005-09-30 02:03:45 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2005-09-30 02:03:45 +0000 |
commit | aa74468aa59b95424cd0000179b8985b267d639b (patch) | |
tree | 5669f87bd8487d74a86f0559759c225926663639 /exa/exa_offscreen.c | |
parent | c65fde5343719d3e9ebc76cc371c6f5f7948de8c (diff) |
sparse cleanups. s/0/NULL/ and mark a few things static.
Diffstat (limited to 'exa/exa_offscreen.c')
-rw-r--r-- | exa/exa_offscreen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/exa/exa_offscreen.c b/exa/exa_offscreen.c index 246241ce3..9284dbd6a 100644 --- a/exa/exa_offscreen.c +++ b/exa/exa_offscreen.c @@ -195,7 +195,7 @@ exaOffscreenAlloc (ScreenPtr pScreen, int size, int align, new_area->offset = area->offset + real_size; new_area->size = area->size - real_size; new_area->state = ExaOffscreenAvail; - new_area->save = 0; + new_area->save = NULL; new_area->score = 0; new_area->next = area->next; area->next = new_area; @@ -299,14 +299,14 @@ exaOffscreenFree (ScreenPtr pScreen, ExaOffscreenArea *area) ExaOffscreenValidate (pScreen); area->state = ExaOffscreenAvail; - area->save = 0; + area->save = NULL; area->offset = area->save_offset; area->score = 0; /* * Find previous area */ if (area == pExaScr->info->card.offScreenAreas) - prev = 0; + prev = NULL; else for (prev = pExaScr->info->card.offScreenAreas; prev; prev = prev->next) if (prev->next == area) @@ -367,7 +367,7 @@ exaOffscreenInit (ScreenPtr pScreen) area->state = ExaOffscreenAvail; area->offset = pExaScr->info->card.offScreenBase; area->size = pExaScr->info->card.memorySize - area->offset; - area->save = 0; + area->save = NULL; area->next = NULL; area->score = 0; |