diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-03-19 17:58:34 -0400 |
---|---|---|
committer | Alex Deucher <alex@samba.(none)> | 2008-03-19 17:58:34 -0400 |
commit | c83827b4d2b6f03c54429e757a756eb99ff8be6b (patch) | |
tree | 92c68452b28649227b89079c8ccaf841a63aa607 /src/radeon_output.c | |
parent | bed9754ad21d6c0a7f61067b04ba31c430a7cecb (diff) |
[PATCH] Compile warning fixes.
Minor changes to avoid declarations mixed with code.
Ansified functions with empty prototype to specify they don't
receive arguments.
Added some prototypes to radeon.h, and major reorder on radeon.h
adding prototypes in alphabetical order and specifying to file that
defines it.
Diffstat (limited to 'src/radeon_output.c')
-rw-r--r-- | src/radeon_output.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/radeon_output.c b/src/radeon_output.c index 57d3bc1e..19ce36d9 100644 --- a/src/radeon_output.c +++ b/src/radeon_output.c @@ -178,15 +178,9 @@ static Bool AVIVOI2CDoLock(xf86OutputPtr output, int lock_state); extern void atombios_output_mode_set(xf86OutputPtr output, DisplayModePtr mode, DisplayModePtr adjusted_mode); -extern void legacy_output_mode_set(xf86OutputPtr output, - DisplayModePtr mode, - DisplayModePtr adjusted_mode); extern void atombios_output_dpms(xf86OutputPtr output, int mode); -extern void legacy_output_dpms(xf86OutputPtr output, int mode); extern RADEONMonitorType atombios_dac_detect(ScrnInfoPtr pScrn, xf86OutputPtr output); -extern RADEONMonitorType legacy_dac_detect(ScrnInfoPtr pScrn, xf86OutputPtr output); extern int atombios_external_tmds_setup(xf86OutputPtr output, DisplayModePtr mode); -extern I2CDevPtr RADEONDVODeviceInit(I2CBusPtr b, I2CSlaveAddr addr); static void radeon_bios_output_dpms(xf86OutputPtr output, int mode); static void @@ -2807,11 +2801,12 @@ Bool RADEONSetupConnectors(ScrnInfoPtr pScrn) for (i = 0 ; i < RADEON_MAX_BIOS_CONNECTOR; i++) { if (info->BiosConnector[i].valid) { + RADEONOutputPrivatePtr radeon_output; if (info->BiosConnector[i].ConnectorType == CONNECTOR_NONE) continue; - RADEONOutputPrivatePtr radeon_output = xnfcalloc(sizeof(RADEONOutputPrivateRec), 1); + radeon_output = xnfcalloc(sizeof(RADEONOutputPrivateRec), 1); if (!radeon_output) { return FALSE; } |