Module: check_mk
Branch: master
Commit: cabd720f3fb5b864c67d1e5ef23f56685e67e406
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cabd720f3fb5b8…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Feb 5 08:11:32 2016 +0100
Fixed misspelled name.
---
livestatus/src/LogEntry.cc | 12 ++++++------
livestatus/src/strutil.cc | 2 +-
livestatus/src/strutil.h | 2 +-
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/livestatus/src/LogEntry.cc b/livestatus/src/LogEntry.cc
index aaf5b4d..f889d38 100644
--- a/livestatus/src/LogEntry.cc
+++ b/livestatus/src/LogEntry.cc
@@ -124,9 +124,9 @@ bool LogEntry::handleStatusEntry() {
scan++;
_host_name = next_token(&scan, ';');
- _state = hostStateToInt(save_next_token(&scan, ';'));
+ _state = hostStateToInt(safe_next_token(&scan, ';'));
_state_type = next_token(&scan, ';');
- _attempt = atoi(save_next_token(&scan, ';'));
+ _attempt = atoi(safe_next_token(&scan, ';'));
_check_output = next_token(&scan, ';');
return true;
}
@@ -188,9 +188,9 @@ bool LogEntry::handleStatusEntry() {
_host_name = next_token(&scan, ';');
_svc_desc = next_token(&scan, ';');
- _state = serviceStateToInt(save_next_token(&scan, ';'));
+ _state = serviceStateToInt(safe_next_token(&scan, ';'));
_state_type = next_token(&scan, ';');
- _attempt = atoi(save_next_token(&scan, ';'));
+ _attempt = atoi(safe_next_token(&scan, ';'));
_check_output = next_token(&scan, ';');
return true;
}
@@ -270,7 +270,7 @@ bool LogEntry::handleNotificationEntry() {
_svc_desc = next_token(&scan, ';');
}
- _state_type = save_next_token(&scan, ';');
+ _state_type = safe_next_token(&scan, ';');
_command_name = next_token(&scan, ';');
if (svc) {
@@ -312,7 +312,7 @@ bool LogEntry::handlePassiveCheckEntry() {
if (svc) {
_svc_desc = next_token(&scan, ';');
}
- _state = atoi(save_next_token(&scan, ';'));
+ _state = atoi(safe_next_token(&scan, ';'));
_check_output = next_token(&scan, ';');
return true;
}
diff --git a/livestatus/src/strutil.cc b/livestatus/src/strutil.cc
index 9ca1c2e..60a2a0e 100644
--- a/livestatus/src/strutil.cc
+++ b/livestatus/src/strutil.cc
@@ -90,7 +90,7 @@ char *next_token(char **c, char delim) {
/* same as next_token() but returns "" instead of 0 if
no tokens has been found */
-const char *save_next_token(char **c, char delim) {
+const char *safe_next_token(char **c, char delim) {
if (*c == nullptr) {
return "";
}
diff --git a/livestatus/src/strutil.h b/livestatus/src/strutil.h
index c68e7f2..0abcc75 100644
--- a/livestatus/src/strutil.h
+++ b/livestatus/src/strutil.h
@@ -35,7 +35,7 @@ char *rstrip(char *);
char *lstrip(char *);
int ends_with(const char *a, const char *b);
char *next_token(char **c, char delim);
-const char *save_next_token(char **c, char delim);
+const char *safe_next_token(char **c, char delim);
char *next_field(char **c);
#ifdef __cplusplus