projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates. New data types.
[silc.git]
/
apps
/
silcd
/
command_reply.c
diff --git
a/apps/silcd/command_reply.c
b/apps/silcd/command_reply.c
index 88211f55beec9d53ce02f99865534dcdf4ea1b58..a23e0305f0d7285ad1c72fc6262b524baabf4ef5 100644
(file)
--- a/
apps/silcd/command_reply.c
+++ b/
apps/silcd/command_reply.c
@@
-70,7
+70,7
@@
void silc_server_command_reply_process(SilcServer server,
SilcServerCommandReplyContext ctx;
SilcCommandPayload payload;
SilcCommand command;
SilcServerCommandReplyContext ctx;
SilcCommandPayload payload;
SilcCommand command;
- u
nsigned short
ident;
+ u
int16
ident;
SILC_LOG_DEBUG(("Start"));
SILC_LOG_DEBUG(("Start"));
@@
-127,7
+127,6
@@
static char
silc_server_command_reply_whois_save(SilcServerCommandReplyContext cmd)
{
SilcServer server = cmd->server;
silc_server_command_reply_whois_save(SilcServerCommandReplyContext cmd)
{
SilcServer server = cmd->server;
- int len, id_len;
unsigned char *tmp, *id_data;
char *nickname, *username, *realname;
SilcClientID *client_id;
unsigned char *tmp, *id_data;
char *nickname, *username, *realname;
SilcClientID *client_id;
@@
-135,7
+134,7
@@
silc_server_command_reply_whois_save(SilcServerCommandReplyContext cmd)
SilcIDCacheEntry cache = NULL;
char global = FALSE;
char *nick;
SilcIDCacheEntry cache = NULL;
char global = FALSE;
char *nick;
- u
nsigned int mode = 0
;
+ u
int32 mode = 0, len, id_len
;
id_data = silc_argument_get_arg_type(cmd->args, 2, &id_len);
nickname = silc_argument_get_arg_type(cmd->args, 3, &len);
id_data = silc_argument_get_arg_type(cmd->args, 2, &id_len);
nickname = silc_argument_get_arg_type(cmd->args, 3, &len);
@@
-268,7
+267,7
@@
static char
silc_server_command_reply_whowas_save(SilcServerCommandReplyContext cmd)
{
SilcServer server = cmd->server;
silc_server_command_reply_whowas_save(SilcServerCommandReplyContext cmd)
{
SilcServer server = cmd->server;
-
int
len, id_len;
+
uint32
len, id_len;
unsigned char *id_data;
char *nickname, *username, *realname;
SilcClientID *client_id;
unsigned char *id_data;
char *nickname, *username, *realname;
SilcClientID *client_id;
@@
-393,7
+392,7
@@
static char
silc_server_command_reply_identify_save(SilcServerCommandReplyContext cmd)
{
SilcServer server = cmd->server;
silc_server_command_reply_identify_save(SilcServerCommandReplyContext cmd)
{
SilcServer server = cmd->server;
-
int
len, id_len;
+
uint32
len, id_len;
unsigned char *id_data;
char *nickname, *username;
SilcClientID *client_id;
unsigned char *id_data;
char *nickname, *username;
SilcClientID *client_id;
@@
-523,7
+522,7
@@
SILC_SERVER_CMD_REPLY_FUNC(info)
SilcCommandStatus status;
SilcServerEntry entry;
SilcServerID *server_id;
SilcCommandStatus status;
SilcServerEntry entry;
SilcServerID *server_id;
- u
nsigned int
tmp_len;
+ u
int32
tmp_len;
unsigned char *tmp, *name;
COMMAND_CHECK_STATUS;
unsigned char *tmp, *name;
COMMAND_CHECK_STATUS;
@@
-579,7
+578,7
@@
SILC_SERVER_CMD_REPLY_FUNC(motd)
SilcCommandStatus status;
SilcServerEntry entry = NULL;
SilcServerID *server_id;
SilcCommandStatus status;
SilcServerEntry entry = NULL;
SilcServerID *server_id;
- u
nsigned int
tmp_len;
+ u
int32
tmp_len;
unsigned char *tmp;
COMMAND_CHECK_STATUS;
unsigned char *tmp;
COMMAND_CHECK_STATUS;
@@
-630,10
+629,10
@@
SILC_SERVER_CMD_REPLY_FUNC(join)
SilcClientID *client_id = NULL;
SilcChannelEntry entry;
SilcHmac hmac = NULL;
SilcClientID *client_id = NULL;
SilcChannelEntry entry;
SilcHmac hmac = NULL;
- u
nsigned int
id_len, len, list_count;
+ u
int32
id_len, len, list_count;
unsigned char *id_string;
char *channel_name, *tmp;
unsigned char *id_string;
char *channel_name, *tmp;
- u
nsigned int
mode, created;
+ u
int32
mode, created;
SilcBuffer keyp = NULL, client_id_list = NULL, client_mode_list = NULL;
COMMAND_CHECK_STATUS;
SilcBuffer keyp = NULL, client_id_list = NULL, client_mode_list = NULL;
COMMAND_CHECK_STATUS;
@@
-828,8
+827,8
@@
SILC_SERVER_CMD_REPLY_FUNC(users)
SilcBuffer client_id_list;
SilcBuffer client_mode_list;
unsigned char *tmp;
SilcBuffer client_id_list;
SilcBuffer client_mode_list;
unsigned char *tmp;
- u
nsigned int
tmp_len;
- u
nsigned int
list_count;
+ u
int32
tmp_len;
+ u
int32
list_count;
COMMAND_CHECK_STATUS;
COMMAND_CHECK_STATUS;