projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Integer type name change.
[silc.git]
/
apps
/
silcd
/
packet_receive.c
diff --git
a/apps/silcd/packet_receive.c
b/apps/silcd/packet_receive.c
index 7d210e83c24a71bc8517c65fd539b7afd0ba2943..07d1e1c86fad97b154863f60dee0baf6003a9169 100644
(file)
--- a/
apps/silcd/packet_receive.c
+++ b/
apps/silcd/packet_receive.c
@@
-46,9
+46,9
@@
void silc_server_notify(SilcServer server,
SilcChannelClientEntry chl;
SilcIDCacheEntry cache;
SilcHashTableList htl;
SilcChannelClientEntry chl;
SilcIDCacheEntry cache;
SilcHashTableList htl;
-
ui
nt32 mode;
+
SilcUI
nt32 mode;
unsigned char *tmp;
unsigned char *tmp;
-
ui
nt32 tmp_len;
+
SilcUI
nt32 tmp_len;
bool local;
SILC_LOG_DEBUG(("Start"));
bool local;
SILC_LOG_DEBUG(("Start"));
@@
-993,7
+993,7
@@
void silc_server_notify(SilcServer server,
* Distribute the notify to local clients on channels
*/
unsigned char *id;
* Distribute the notify to local clients on channels
*/
unsigned char *id;
-
ui
nt32 id_len;
+
SilcUI
nt32 id_len;
SILC_LOG_DEBUG(("KILLED notify"));
SILC_LOG_DEBUG(("KILLED notify"));
@@
-1193,7
+1193,7
@@
void silc_server_notify_list(SilcServer server,
{
SilcPacketContext *new;
SilcBuffer buffer;
{
SilcPacketContext *new;
SilcBuffer buffer;
-
ui
nt16 len;
+
SilcUI
nt16 len;
SILC_LOG_DEBUG(("Processing Notify List"));
SILC_LOG_DEBUG(("Processing Notify List"));
@@
-1523,8
+1523,8
@@
SilcClientEntry silc_server_new_client(SilcServer server,
SilcBuffer reply;
SilcIDListData idata;
char *username = NULL, *realname = NULL, *id_string;
SilcBuffer reply;
SilcIDListData idata;
char *username = NULL, *realname = NULL, *id_string;
-
ui
nt16 username_len;
-
ui
nt32 id_len;
+
SilcUI
nt16 username_len;
+
SilcUI
nt32 id_len;
int ret;
char *hostname, *nickname;
int nickfail = 0;
int ret;
char *hostname, *nickname;
int nickfail = 0;
@@
-1589,8
+1589,7
@@
SilcClientEntry silc_server_new_client(SilcServer server,
int tlen = strcspn(username, "@");
char *phostname = NULL;
int tlen = strcspn(username, "@");
char *phostname = NULL;
- hostname = silc_calloc((strlen(username) - tlen) + 1, sizeof(char));
- memcpy(hostname, username + tlen + 1, strlen(username) - tlen - 1);
+ hostname = silc_memdup(username + tlen + 1, strlen(username) - tlen - 1);
if (strcmp(sock->hostname, sock->ip) &&
strcmp(sock->hostname, hostname)) {
if (strcmp(sock->hostname, sock->ip) &&
strcmp(sock->hostname, hostname)) {
@@
-1773,7
+1772,7
@@
SilcServerEntry silc_server_new_server(SilcServer server,
SilcServerID *server_id;
SilcIDListData idata;
unsigned char *server_name, *id_string;
SilcServerID *server_id;
SilcIDListData idata;
unsigned char *server_name, *id_string;
-
ui
nt16 id_len, name_len;
+
SilcUI
nt16 id_len, name_len;
int ret;
bool local = TRUE;
int ret;
bool local = TRUE;
@@
-2111,7
+2110,7
@@
void silc_server_new_id_list(SilcServer server, SilcSocketConnection sock,
{
SilcPacketContext *new_id;
SilcBuffer idp;
{
SilcPacketContext *new_id;
SilcBuffer idp;
-
ui
nt16 id_len;
+
SilcUI
nt16 id_len;
SILC_LOG_DEBUG(("Processing New ID List"));
SILC_LOG_DEBUG(("Processing New ID List"));
@@
-2183,10
+2182,10
@@
void silc_server_new_channel(SilcServer server,
SilcChannelPayload payload;
SilcChannelID *channel_id;
char *channel_name;
SilcChannelPayload payload;
SilcChannelID *channel_id;
char *channel_name;
-
ui
nt32 name_len;
+
SilcUI
nt32 name_len;
unsigned char *id;
unsigned char *id;
-
ui
nt32 id_len;
-
ui
nt32 mode;
+
SilcUI
nt32 id_len;
+
SilcUI
nt32 mode;
SilcServerEntry server_entry;
SilcChannelEntry channel;
SilcServerEntry server_entry;
SilcChannelEntry channel;
@@
-2389,7
+2388,7
@@
void silc_server_new_channel_list(SilcServer server,
{
SilcPacketContext *new;
SilcBuffer buffer;
{
SilcPacketContext *new;
SilcBuffer buffer;
-
ui
nt16 len1, len2;
+
SilcUI
nt16 len1, len2;
SILC_LOG_DEBUG(("Processing New Channel List"));
SILC_LOG_DEBUG(("Processing New Channel List"));
@@
-2501,7
+2500,7
@@
void silc_server_connection_auth_request(SilcServer server,
SilcPacketContext *packet)
{
SilcServerConfigClient *client = NULL;
SilcPacketContext *packet)
{
SilcServerConfigClient *client = NULL;
-
ui
nt16 conn_type;
+
SilcUI
nt16 conn_type;
int ret;
SilcAuthMethod auth_meth = SILC_AUTH_NONE;
int ret;
SilcAuthMethod auth_meth = SILC_AUTH_NONE;