From 433591e9e57c40728f666f3788bb34614cf6ab78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 19 Feb 2013 17:38:35 +0100 Subject: Fix unintended rename of chkconfig --- ksysv/AUTHORS | 2 +- ksysv/leveldb.c | 2 +- ksysv/leveldb.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ksysv') diff --git a/ksysv/AUTHORS b/ksysv/AUTHORS index dad4d1f..a2a59a9 100644 --- a/ksysv/AUTHORS +++ b/ksysv/AUTHORS @@ -4,7 +4,7 @@ Current Code Main developer: Peter Putzer -leveldb.{h,c} (from chtdeconfig): +leveldb.{h,c} (from chkconfig): Red Hat Software http://www.redhat.com Previous Versions diff --git a/ksysv/leveldb.c b/ksysv/leveldb.c index 030e941..149cb3b 100644 --- a/ksysv/leveldb.c +++ b/ksysv/leveldb.c @@ -111,7 +111,7 @@ int readServiceInfo(const char* RUNLEVELS, const char * name, struct service * s while (isspace(*start) && start < end) start++; if (start == end) continue; - if (!strncmp(start, "chtdeconfig:", 10)) { + if (!strncmp(start, "chkconfig:", 10)) { start += 10; while (isspace(*start) && start < end) start++; if (start == end) { diff --git a/ksysv/leveldb.h b/ksysv/leveldb.h index ef6dea9..e18d202 100644 --- a/ksysv/leveldb.h +++ b/ksysv/leveldb.h @@ -34,7 +34,7 @@ struct service { int parseLevels(const char * str, int emptyOk); -/* returns 0 on success, 1 if the service is not chtdeconfig-able, -1 if an +/* returns 0 on success, 1 if the service is not chkconfig-able, -1 if an I/O error occurs (in which case errno can be checked) */ int readServiceInfo(const char* RUNLEVELS, const char* name, struct service * service); int currentRunlevel(void); -- cgit v1.2.1