From 164b8e4e04ae9169b8280d96d5dcc9015758e00e Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 17 Jan 2011 22:30:40 +0000 Subject: Document that rc_sys_v{1,2} should not be used outside of OpenRC. --- src/librc/librc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/librc') diff --git a/src/librc/librc.c b/src/librc/librc.c index a8fc71a8..e134547e 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -198,6 +198,8 @@ file_regex(const char *file, const char *regex) } #endif +/* New sys identification code + * Not to be used for any binaries outside of openrc. */ const char * rc_sys_v2(void) { @@ -205,7 +207,6 @@ rc_sys_v2(void) #define __STRING_CASE(y) else if (strcmp(__string_switch,y) == 0) #define __STRING_SWITCH_END() } char *systype = rc_conf_value("rc_sys"); - /* New sys identification code */ if (systype) { char *s = systype; /* Convert to uppercase */ @@ -241,7 +242,8 @@ rc_sys_v2(void) } librc_hidden_def(rc_sys_v2) -/* Old sys identification code */ +/* Old sys identification code. + * Not to be used for any binaries outside of openrc. */ const char * rc_sys_v1(void) { -- cgit v1.2.3