Merge pull request #13 from gazoo74/fix-warnings

Fix warnings
This commit is contained in:
Matt Johnston
2015-06-04 22:25:28 +08:00
45 changed files with 204 additions and 191 deletions

View File

@@ -194,7 +194,7 @@ static void send_msg_service_request(char* servicename) {
CHECKCLEARTOWRITE();
buf_putbyte(ses.writepayload, SSH_MSG_SERVICE_REQUEST);
buf_putstring(ses.writepayload, servicename, strlen(servicename));
buf_putstring(ses.writepayload, (const unsigned char *)servicename, strlen(servicename));
encrypt_packet();
TRACE(("leave send_msg_service_request"))
@@ -374,10 +374,10 @@ static void cli_remoteclosed() {
/* 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++) {