[dovecot-cvs] dovecot/src/imap client.h,1.9,1.10 commands.c,1.7,1.8 commands.h,1.7,1.8 imap-sort.c,1.1,1.2 imap-thread.c,1.1,1.2
cras at procontrol.fi
cras at procontrol.fi
Mon Jan 27 04:00:01 EET 2003
Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv24859/src/imap
Modified Files:
client.h commands.c commands.h imap-sort.c imap-thread.c
Log Message:
Function typedefs now define them as functions, not function pointers.
Index: client.h
===================================================================
RCS file: /home/cvs/dovecot/src/imap/client.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- client.h 23 Jan 2003 03:28:46 -0000 1.9
+++ client.h 27 Jan 2003 01:59:59 -0000 1.10
@@ -6,7 +6,7 @@
struct client;
-typedef int (*client_command_func_t)(struct client *client);
+typedef int client_command_func_t(struct client *client);
struct client {
int socket;
@@ -24,7 +24,7 @@
struct imap_parser *parser;
const char *cmd_tag; /* tag of command (allocated from parser pool), */
const char *cmd_name; /* command name (allocated from parser pool) */
- client_command_func_t cmd_func;
+ client_command_func_t *cmd_func;
unsigned int cmd_error:1;
unsigned int cmd_uid:1; /* used UID command */
Index: commands.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/commands.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- commands.c 22 Jan 2003 20:46:36 -0000 1.7
+++ commands.c 27 Jan 2003 01:59:59 -0000 1.8
@@ -3,7 +3,7 @@
#include "common.h"
#include "commands.h"
-client_command_func_t client_command_find(const char *name)
+client_command_func_t *client_command_find(const char *name)
{
/* keep the command uppercased */
name = str_ucase(t_strdup_noconst(name));
Index: commands.h
===================================================================
RCS file: /home/cvs/dovecot/src/imap/commands.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- commands.h 22 Jan 2003 20:46:36 -0000 1.7
+++ commands.h 27 Jan 2003 01:59:59 -0000 1.8
@@ -4,7 +4,7 @@
#include "commands-util.h"
#include "imap-parser.h"
-client_command_func_t client_command_find(const char *name);
+client_command_func_t *client_command_find(const char *name);
/* Non-Authenticated State */
int cmd_authenticate(struct client *client);
Index: imap-sort.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/imap-sort.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- imap-sort.c 20 Jan 2003 14:52:51 -0000 1.1
+++ imap-sort.c 27 Jan 2003 01:59:59 -0000 1.2
@@ -162,7 +162,7 @@
ctx->str_pool = pool_alloconly_create("sort str", 8192);
ctx->string_table = hash_create(default_pool, ctx->str_pool,
0, str_hash,
- (hash_cmp_callback_t)strcmp);
+ (hash_cmp_callback_t *)strcmp);
}
return fields;
Index: imap-thread.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/imap-thread.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- imap-thread.c 20 Jan 2003 14:52:51 -0000 1.1
+++ imap-thread.c 27 Jan 2003 01:59:59 -0000 1.2
@@ -131,7 +131,7 @@
APPROX_MSGID_SIZE);
ctx->msgid_hash = hash_create(default_pool, ctx->temp_pool,
APPROX_MSG_COUNT*2, str_hash,
- (hash_cmp_callback_t)strcmp);
+ (hash_cmp_callback_t *)strcmp);
ctx->id_is_uid = client->cmd_uid;
while ((mail = client->mailbox->search_next(ctx->search_ctx)) != NULL)
@@ -652,7 +652,7 @@
ctx->subject_hash =
hash_create(default_pool, ctx->temp_pool, ctx->root_count * 2,
- str_hash, (hash_cmp_callback_t)strcmp);
+ str_hash, (hash_cmp_callback_t *)strcmp);
node = ctx->root_node.first_child;
for (; node != NULL; node = node->next) {
More information about the dovecot-cvs
mailing list