summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/librcscripts/depend.c')
-rw-r--r--src/core/librcscripts/depend.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/librcscripts/depend.c b/src/core/librcscripts/depend.c
index c3a41c8..a5a2629 100644
--- a/src/core/librcscripts/depend.c
+++ b/src/core/librcscripts/depend.c
@@ -46,9 +46,9 @@ char *service_type_names[] = {
NULL
};
-static char *
-service_is_recursive_dependency (char *servicename, char *dependency,
- bool checkuse);
+static char *service_is_recursive_dependency (char *servicename,
+ char *dependency,
+ bool checkuse);
static int __service_resolve_dependency (char *servicename, char *dependency,
service_type_t type);
@@ -196,7 +196,7 @@ service_add_dependency (char *servicename, char *dependency,
service_type_t type)
{
service_info_t *info;
- char *tmp_buf;
+ char *buf;
if ((!check_arg_str (servicename)) || (!check_arg_str (dependency)))
return -1;
@@ -210,11 +210,11 @@ service_add_dependency (char *servicename, char *dependency,
DBG_MSG ("Adding dependency '%s' of service '%s', type '%s'.\n",
dependency, servicename, service_type_names[type]);
- tmp_buf = xstrndup (dependency, strlen (dependency));
- if (NULL == tmp_buf)
+ buf = xstrndup (dependency, strlen (dependency));
+ if (NULL == buf)
return -1;
- str_list_add_item_sorted (info->depend_info[type], tmp_buf, error);
+ str_list_add_item_sorted (info->depend_info[type], buf, error);
}
else
{
@@ -462,7 +462,7 @@ __service_resolve_dependency (char *servicename, char *dependency,
if (type == BEFORE)
{
char *depend;
-
+
/* NEED and USE override BEFORE
* ('servicename' BEFORE 'dependency') */
if ((0 == service_is_dependency (servicename, dependency, NEED))
@@ -489,7 +489,7 @@ __service_resolve_dependency (char *servicename, char *dependency,
if (type == AFTER)
{
char *depend;
-
+
/* NEED and USE override AFTER
* ('servicename' AFTER 'dependency') */
if ((0 == service_is_dependency (dependency, servicename, NEED))