Commit 1f9355e1 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

char -> unsigned char

parent b162841d
......@@ -238,9 +238,9 @@ mux_getclientbyconn(Mux *mp, Connection *cp)
int
mux_write(Connection * cp,
const char * buf,
size_t size)
mux_write(Connection * cp,
const unsigned char * buf,
size_t size)
{
Mux * mp = cp->mux;
Mux_client * mcp;
......
......@@ -88,9 +88,9 @@ mux_getclientbyconn(Mux *mp, Connection *cp);
*/
extern int
mux_write(Connection * cp,
const char * buf,
size_t size);
mux_write(Connection * cp,
const unsigned char * buf,
size_t size);
extern int
mux_printf(Connection * cp,
......
......@@ -16,7 +16,7 @@
#include "log.h"
#include "minmax.h"
#include <config.h>
#include "parser.h"
#include <parser.h>
#include "com.h"
#include "connections.h"
#include "send-async.h"
......@@ -38,7 +38,8 @@ do_set_passwd( Password pwd,
return FAILURE;
*pwd++ = new_pwd.len; /*** Maybe too easy crypt... */
strncpy(pwd, new_pwd.string, min( PASSWD_LEN-1, new_pwd.len ));
strncpy(pwd, (const char *)new_pwd.string,
min( PASSWD_LEN-1, new_pwd.len ));
return OK;
}
......
......@@ -284,7 +284,8 @@ prot_a_parse_packet(Connection *client)
client->c_string0 = EMPTY_STRING; /* "A5B" as first input. */
/* Protokoll B will not suffer from this... */
if ( s_strcat(&client->username, s_fcrea_str("@")) != OK )
if ( s_strcat(&client->username,
s_fcrea_str((const unsigned char *)"@")) != OK )
restart_kom("prot_a_parse_packet: s_strcat\n");
if ( s_strcat(&client->username, client->hostname) != OK )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment