summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 19:43:33 +0100
committerDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 20:48:33 +0100
commit2eaf9403d205c71ba2008875ef42d9ae37bc3d46 (patch)
treea88005b874b4a948650fbb475fc58bc08993c994 /src/input.c
parent8b14625cc3700c8efa2ae5381e4d566ed23e2fab (diff)
Make all the remaining ops structure constants.
This excludes the mixer for now since it requires a change to the public headers. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input.c b/src/input.c
index 392eed23..7cfbe56a 100644
--- a/src/input.c
+++ b/src/input.c
@@ -45,7 +45,7 @@ typedef struct _snd_input_ops {
struct _snd_input {
snd_input_type_t type;
- snd_input_ops_t *ops;
+ const snd_input_ops_t *ops;
void *private_data;
};
#endif
@@ -157,7 +157,7 @@ static int snd_input_stdio_ungetc(snd_input_t *input, int c)
return ungetc(c, stdio->fp);
}
-static snd_input_ops_t snd_input_stdio_ops = {
+static const snd_input_ops_t snd_input_stdio_ops = {
.close = snd_input_stdio_close,
.scan = snd_input_stdio_scan,
.gets = snd_input_stdio_gets,
@@ -283,7 +283,7 @@ static int snd_input_buffer_ungetc(snd_input_t *input, int c)
return c;
}
-static snd_input_ops_t snd_input_buffer_ops = {
+static const snd_input_ops_t snd_input_buffer_ops = {
.close = snd_input_buffer_close,
.scan = snd_input_buffer_scan,
.gets = snd_input_buffer_gets,