Fix some compiler warnings

librc: Fix C90 warning (mixed declaration and code)
rc: Fix warning about discarding const qualifier

Fixes #45.
This commit is contained in:
Doug Freed
2015-03-24 19:28:47 +00:00
committed by William Hubbs
parent c1faafcad8
commit f085ae400c
2 changed files with 5 additions and 3 deletions

View File

@ -519,7 +519,7 @@ runlevel_config(const char *service, const char *level)
}
static void
do_stop_services(const RC_STRINGLIST *types_n, const RC_STRINGLIST *start_services,
do_stop_services(RC_STRINGLIST *types_n, RC_STRINGLIST *start_services,
const RC_STRINGLIST *stop_services, const RC_DEPTREE *deptree,
const char *newlevel, bool parallel, bool going_down)
{