Andrew Talbot : imaadp32.acm: Constify some variables.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 14 15:30:33 CST 2007


Module: wine
Branch: master
Commit: ce84a4381c550922030ded8ce207b6f7c4de3e21
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ce84a4381c550922030ded8ce207b6f7c4de3e21

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Wed Feb 14 18:11:34 2007 +0000

imaadp32.acm: Constify some variables.

---

 dlls/imaadp32.acm/imaadp32.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/imaadp32.acm/imaadp32.c b/dlls/imaadp32.acm/imaadp32.c
index a5f2493..ca788e7 100644
--- a/dlls/imaadp32.acm/imaadp32.c
+++ b/dlls/imaadp32.acm/imaadp32.c
@@ -73,7 +73,7 @@ typedef	struct
     int		rate;
 } Format;
 
-static Format PCM_Formats[] =
+static const Format PCM_Formats[] =
 {
     {1,  8,  8000}, {2,  8,  8000}, {1, 16,  8000}, {2, 16,  8000},
     {1,  8, 11025}, {2,  8, 11025}, {1, 16, 11025}, {2, 16, 11025},
@@ -81,7 +81,7 @@ static Format PCM_Formats[] =
     {1,  8, 44100}, {2,  8, 44100}, {1, 16, 44100}, {2, 16, 44100},
 };
 
-static Format ADPCM_Formats[] =
+static const Format ADPCM_Formats[] =
 {
     {1,  4,  8000}, {2,	4,  8000},  {1,  4, 11025}, {2,	 4, 11025},
     {1,  4, 22050}, {2,	4, 22050},  {1,  4, 44100}, {2,	 4, 44100},
@@ -95,8 +95,8 @@ static Format ADPCM_Formats[] =
  */
 static	DWORD	ADPCM_GetFormatIndex(LPWAVEFORMATEX wfx)
 {
-    int 	i, hi;
-    Format*	fmts;
+    int             i, hi;
+    const Format*   fmts;
 
     switch (wfx->wFormatTag)
     {




More information about the wine-cvs mailing list