diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-09-08 08:29:58 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-09-08 08:45:06 -0400 |
commit | 4f7454a9970fa0f3e9f1a68201520e3df1bb5224 (patch) | |
tree | 2bd07fd5fe7dc518b25b3b61592cad4a3fbf10b9 /sound/core/info.c | |
parent | 6e5265ec34d3b9578973841ddec8b925e986136a (diff) |
ALSA: Add const prefix to proc helper functions
Add appropriate const prefix to char * arguments in proc helper functions.
Also fixed the caller side to be proper const pointers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/info.c')
-rw-r--r-- | sound/core/info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/info.c b/sound/core/info.c index 35df614f6c55..6eb53930ea1d 100644 --- a/sound/core/info.c +++ b/sound/core/info.c | |||
@@ -108,7 +108,7 @@ static int resize_info_buffer(struct snd_info_buffer *buffer, | |||
108 | * | 108 | * |
109 | * Returns the size of output string. | 109 | * Returns the size of output string. |
110 | */ | 110 | */ |
111 | int snd_iprintf(struct snd_info_buffer *buffer, char *fmt,...) | 111 | int snd_iprintf(struct snd_info_buffer *buffer, const char *fmt, ...) |
112 | { | 112 | { |
113 | va_list args; | 113 | va_list args; |
114 | int len, res; | 114 | int len, res; |
@@ -727,7 +727,7 @@ EXPORT_SYMBOL(snd_info_get_line); | |||
727 | * Returns the updated pointer of the original string so that | 727 | * Returns the updated pointer of the original string so that |
728 | * it can be used for the next call. | 728 | * it can be used for the next call. |
729 | */ | 729 | */ |
730 | char *snd_info_get_str(char *dest, char *src, int len) | 730 | const char *snd_info_get_str(char *dest, const char *src, int len) |
731 | { | 731 | { |
732 | int c; | 732 | int c; |
733 | 733 | ||