diff cli-session.c @ 1122:aaf576b27a10

Merge pull request #13 from gazoo74/fix-warnings Fix warnings
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Jun 2015 23:08:50 +0800
parents 8e0280986710 94ff5316980f
children 6aeadee3f16b
line wrap: on
line diff
--- a/cli-session.c	Wed Jun 03 22:59:59 2015 +0800
+++ b/cli-session.c	Thu Jun 04 23:08:50 2015 +0800
@@ -374,10 +374,10 @@
 /* Operates in-place turning dirty (untrusted potentially containing control
  * characters) text into clean text. 
  * Note: this is safe only with ascii - other charsets could have problems. */
-void cleantext(unsigned char* dirtytext) {
+void cleantext(char* dirtytext) {
 
 	unsigned int i, j;
-	unsigned char c;
+	char c;
 
 	j = 0;
 	for (i = 0; dirtytext[i] != '\0'; i++) {