Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157767
b: refs/heads/master
c: 4f7454a
h: refs/heads/master
i:
  157765: 002e0e3
  157763: 8c49388
  157759: f2a887a
v: v3
  • Loading branch information
Takashi Iwai committed Sep 8, 2009
1 parent a25d9cd commit a624fc6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e5265ec34d3b9578973841ddec8b925e986136a
refs/heads/master: 4f7454a9970fa0f3e9f1a68201520e3df1bb5224
4 changes: 2 additions & 2 deletions trunk/include/sound/info.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ void snd_card_info_read_oss(struct snd_info_buffer *buffer);
static inline void snd_card_info_read_oss(struct snd_info_buffer *buffer) {}
#endif

int snd_iprintf(struct snd_info_buffer *buffer, char *fmt, ...) \
int snd_iprintf(struct snd_info_buffer *buffer, const char *fmt, ...) \
__attribute__ ((format (printf, 2, 3)));
int snd_info_init(void);
int snd_info_done(void);

int snd_info_get_line(struct snd_info_buffer *buffer, char *line, int len);
char *snd_info_get_str(char *dest, char *src, int len);
const char *snd_info_get_str(char *dest, const char *src, int len);
struct snd_info_entry *snd_info_create_module_entry(struct module *module,
const char *name,
struct snd_info_entry *parent);
Expand Down
4 changes: 2 additions & 2 deletions trunk/sound/core/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static int resize_info_buffer(struct snd_info_buffer *buffer,
*
* Returns the size of output string.
*/
int snd_iprintf(struct snd_info_buffer *buffer, char *fmt,...)
int snd_iprintf(struct snd_info_buffer *buffer, const char *fmt, ...)
{
va_list args;
int len, res;
Expand Down Expand Up @@ -727,7 +727,7 @@ EXPORT_SYMBOL(snd_info_get_line);
* Returns the updated pointer of the original string so that
* it can be used for the next call.
*/
char *snd_info_get_str(char *dest, char *src, int len)
const char *snd_info_get_str(char *dest, const char *src, int len)
{
int c;

Expand Down
3 changes: 2 additions & 1 deletion trunk/sound/core/oss/mixer_oss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,8 @@ static void snd_mixer_oss_proc_write(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{
struct snd_mixer_oss *mixer = entry->private_data;
char line[128], str[32], idxstr[16], *cptr;
char line[128], str[32], idxstr[16];
const char *cptr;
int ch, idx;
struct snd_mixer_oss_assign_table *tbl;
struct slot *slot;
Expand Down
3 changes: 2 additions & 1 deletion trunk/sound/core/oss/pcm_oss.c
Original file line number Diff line number Diff line change
Expand Up @@ -2836,7 +2836,8 @@ static void snd_pcm_oss_proc_write(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{
struct snd_pcm_str *pstr = entry->private_data;
char line[128], str[32], task_name[32], *ptr;
char line[128], str[32], task_name[32];
const char *ptr;
int idx1;
struct snd_pcm_oss_setup *setup, *setup1, template;

Expand Down

0 comments on commit a624fc6

Please sign in to comment.