Commit 7c5e2eab authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Update: Added some consts

parent b7ffabd2
......@@ -28,7 +28,7 @@ static void process_other(stream_processor *stream, ogg_page *page )
}
}
void other_start(stream_processor *stream, char *type)
void other_start(stream_processor *stream, const char *type)
{
if (type) {
stream->type = type;
......
......@@ -65,7 +65,7 @@ static stream_set *create_stream_set(void) {
return set;
}
void info(char *format, ...)
void info(const char *format, ...)
{
va_list ap;
......@@ -77,7 +77,7 @@ void info(char *format, ...)
va_end(ap);
}
void warn(char *format, ...)
void warn(const char *format, ...)
{
va_list ap;
......@@ -90,7 +90,7 @@ void warn(char *format, ...)
va_end(ap);
}
void error(char *format, ...)
void error(const char *format, ...)
{
va_list ap;
......
......@@ -26,23 +26,23 @@ typedef struct _stream_processor {
int end;
int num;
char *type;
const char *type;
ogg_uint32_t serial; /* must be 32 bit unsigned */
ogg_stream_state os;
void *data;
} stream_processor;
void info(char *format, ...);
void warn(char *format, ...);
void error(char *format, ...);
void info(const char *format, ...);
void warn(const char *format, ...);
void error(const char *format, ...);
void check_xiph_comment(stream_processor *stream, int i, const char *comment, int comment_length);
void vorbis_start(stream_processor *stream);
void theora_start(stream_processor *stream);
void kate_start(stream_processor *stream);
void other_start(stream_processor *stream, char *type);
void other_start(stream_processor *stream, const char *type);
void invalid_start(stream_processor *stream);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment