summaryrefslogtreecommitdiff
path: root/src/ladmin/ladmin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ladmin/ladmin.c')
-rw-r--r--src/ladmin/ladmin.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/ladmin/ladmin.c b/src/ladmin/ladmin.c
index de177ba8a..0453efa1d 100644
--- a/src/ladmin/ladmin.c
+++ b/src/ladmin/ladmin.c
@@ -36,6 +36,7 @@ void Gettimeofday(struct timeval *timenow)
#include <stdarg.h> // valist
#include <ctype.h> // tolower
+#include "../common/strlib.h"
#include "../common/core.h"
#include "../common/socket.h"
#include "ladmin.h"
@@ -291,23 +292,6 @@ int ladmin_log(char *fmt, ...) {
return 0;
}
-//-----------------------------------------------------
-// Function to suppress control characters in a string.
-//-----------------------------------------------------
-int remove_control_chars(char *str) {
- int i;
- int change = 0;
-
- for(i = 0; str[i]; i++) {
- if (str[i] < 32) {
- str[i] = '_';
- change = 1;
- }
- }
-
- return change;
-}
-
//---------------------------------------------
// Function to return ordonal text of a number.
//---------------------------------------------