summaryrefslogtreecommitdiff
path: root/src/librc
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-01-17 22:30:40 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2011-01-17 22:30:40 +0000
commit164b8e4e04ae9169b8280d96d5dcc9015758e00e (patch)
tree6f71485949bf0dc0bd2546a77b81783fc7732c1a /src/librc
parentde8b4855d30c4102f5cf52b7802383d845e4c380 (diff)
downloadopenrc-164b8e4e04ae9169b8280d96d5dcc9015758e00e.tar.gz
openrc-164b8e4e04ae9169b8280d96d5dcc9015758e00e.tar.bz2
openrc-164b8e4e04ae9169b8280d96d5dcc9015758e00e.tar.xz
Document that rc_sys_v{1,2} should not be used outside of OpenRC.
Diffstat (limited to 'src/librc')
-rw-r--r--src/librc/librc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index a8fc71a..e134547 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)
{