Commit b476133d authored by sletz's avatar sletz
Browse files

Change prototype

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1746 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 0fe84119
......@@ -812,7 +812,7 @@ EXPORT int jack_client_close(jack_client_t *client)
}
// Library loader
static bool get_jack_library_in_directory(char* dir_name, char* library_name)
static bool get_jack_library_in_directory(const char* dir_name, char* library_name)
{
struct dirent * dir_entry;
DIR * dir_stream = opendir(dir_name);
......
......@@ -36,8 +36,8 @@ extern "C"
}
jack_varargs_t;
static char* jack_default_server_name (void) {
char *server_name;
static const char* jack_default_server_name (void) {
const char *server_name;
if ((server_name = getenv("JACK_DEFAULT_SERVER")) == NULL)
server_name = "default";
return server_name;
......@@ -45,7 +45,7 @@ extern "C"
static inline void jack_varargs_init (jack_varargs_t *va) {
memset (va, 0, sizeof(jack_varargs_t));
va->server_name = jack_default_server_name();
va->server_name = (char*)jack_default_server_name();
}
static inline void jack_varargs_parse (jack_options_t options, va_list ap, jack_varargs_t *va) {
......
......@@ -139,7 +139,7 @@ void usage()
exit(1);
}
void Log(char *fmt, ...)
void Log(const char *fmt, ...)
{
if (verbose_mode) {
va_list ap;
......
Supports Markdown
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