Compiler error/warning fixes.

git-svn-id: svn://svn.savannah.nongnu.org/lash/trunk@53 1de19dc7-4e3f-0410-a61d-eddf686bf0b7
This commit is contained in:
Dave Robillard 2007-02-27 02:01:51 +00:00
parent c2b2c7e9de
commit 1cc61e7458
3 changed files with 6 additions and 3 deletions

1
NEWS
View File

@ -1,5 +1,6 @@
0.5.3:
* switch LASH_START_SERVER for LASH_NO_START_SERVER with opposite semantics
(start server automatically by default)
0.5.2:
* support for building without ALSA

View File

@ -82,7 +82,7 @@ lash_args_duplicate(const lash_args_t *const src)
result->argc = 0;
result->argv = NULL;
if (src->argc > 0 && src->argv)
lash_args_set_args(result, src->argc, src->argv);
lash_args_set_args(result, src->argc, (const char**)src->argv);
return result;
}

View File

@ -127,7 +127,7 @@ lash_extract_args(int *argc, char ***argv)
*argc = valid_count;
lash_args_set_args(args, *argc, *argv);
lash_args_set_args(args, *argc, (const char**)*argv);
return args;
}
@ -201,9 +201,11 @@ lash_init(const lash_args_t * args,
/* need to close all open file descriptors except the std ones */
struct rlimit max_fds;
rlim_t fd;
getrlimit(RLIMIT_NOFILE, &max_fds);
for (rlim_t fd = 3; fd < max_fds.rlim_cur; ++fd)
for (fd = 3; fd < max_fds.rlim_cur; ++fd)
close(fd);
switch (fork()) {