$Log$
+ Revision 629.7 2005/01/19 03:03:36 ajc
+ * Minor and/or cosmetic changes made during x64 troubleshooting
+
Revision 629.6 2005/01/18 17:58:38 ajc
* Trying to fix IMAP brokenness on Linux-x64. Committing changes even
though there are a lot of annoying trace messages in this tree, because
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
void CtdlIPC_chat_recv(CtdlIPC* ipc, char* buf)
{
- return CtdlIPC_getline(ipc, buf);
+ CtdlIPC_getline(ipc, buf);
}
/*
void CtdlIPC_chat_send(CtdlIPC* ipc, const char* buf)
{
- return CtdlIPC_putline(ipc, buf);
+ CtdlIPC_putline(ipc, buf);
}
SubscribedRoomsWithNoNewMessages,
UnsubscribedRooms,
AllAccessibleRooms,
- AllPublicRooms,
+ AllPublicRooms
};
#define AllFloors -1
enum MessageList {
LastMessages,
FirstMessages,
MessagesGreaterThan,
- MessagesLessThan,
+ MessagesLessThan
};
enum MessageDirection {
ReadReverse = -1,
- ReadForward = 1,
+ ReadForward = 1
};
/* Shared Diffie-Hellman parameters */
strcpy(con->fake_hostname, "");
strcpy(con->fake_roomname, "");
generate_nonce(con);
- snprintf(con->temp, sizeof con->temp, tmpnam(NULL));
+ safestrncpy(con->temp, tmpnam(NULL), sizeof con->temp);
safestrncpy(con->cs_host, config.c_fqdn, sizeof con->cs_host);
safestrncpy(con->cs_addr, "", sizeof con->cs_addr);
con->cs_host[sizeof con->cs_host - 1] = 0;
uncompressed_data = malloc(zheader.uncompressed_len);
if (uncompress( (Bytef *) uncompressed_data,
- &destLen,
- compressed_data,
- sourceLen
+ (uLongf *)&destLen,
+ (const Bytef *)compressed_data,
+ (uLong)sourceLen
) != Z_OK) {
lprintf(CTDL_EMERG, "uncompress() error\n");
abort();
if (MYCURSORS[cdb] != NULL) {
lprintf(CTDL_EMERG, "cdb_rewind: must close cursor on database %d before reopening.\n", cdb);
abort();
- //cclose(MYCURSORS[cdb]);
+ /* cclose(MYCURSORS[cdb]); */
}
/*
* imap_do_fetch() calls imap_do_fetch_msg() to output the data of an
* individual message, once it has been selected for output.
*/
-void imap_do_fetch_msg(int seq,
- int num_items, char **itemlist) {
+void imap_do_fetch_msg(int seq, int num_items, char **itemlist) {
int i;
struct CtdlMessage *msg = NULL;
struct sockaddr_in sin;
int len; /* should be socklen_t but doesn't work on Macintosh */
- if (!getpeername(CC->client_socket, (struct sockaddr *) &sin, &len)) {
+ if (!getpeername(CC->client_socket, (struct sockaddr *) &sin, (socklen_t *)&len)) {
return(rbl_check_addr(&sin.sin_addr, message_to_spammer));
}
return(0);
void *file = NULL; /* The downloaded file */
int r;
- // view image
+ /* view image */
found = -found;
r = CtdlIPCAttachmentDownload(ipc, msg, ptr->number, &file, progress, buf);
if (r / 100 != 2) {
char buf[SIZ];
int buf_length = 0;
int soft_line_break = 0;
- int ch;
+ unsigned int ch;
int decoded_length = 0;
int i;
}
cprintf("%d %ld\n", BINARY_FOLLOWS, (long)smr.len);
- client_write(smr.ser, smr.len);
+ client_write((char *)smr.ser, (int)smr.len);
free(smr.ser);
}
for (i=0; i<26; ++i) if (msg->cm_fields[(int)forder[i]] != NULL) {
ret->ser[wlen++] = (char)forder[i];
- strcpy(&ret->ser[wlen], msg->cm_fields[(int)forder[i]]);
+ strcpy((char *)&ret->ser[wlen], msg->cm_fields[(int)forder[i]]);
wlen = wlen + strlen(msg->cm_fields[(int)forder[i]]) + 1;
}
if (ret->len != wlen) lprintf(CTDL_ERR, "ERROR: len=%ld wlen=%ld\n",
*/
char *serv_bio_init(void);
char *serv_calendar_init(void);
+char *serv_notes_init(void);
char *serv_ldap_init(void);
char *serv_chat_init(void);
char *serv_expire_init(void);
enum {
CON_IDLE, /* This context is doing nothing */
CON_READY, /* This context needs attention */
- CON_EXECUTING, /* This context is bound to a thread */
+ CON_EXECUTING /* This context is bound to a thread */
};
*/
struct ser_ret {
size_t len;
- char *ser;
+ unsigned char *ser;
};
/* Unimportant progress messages, etc. */
CTDL_INFO, /* informational */
/* Debugging messages */
- CTDL_DEBUG, /* debug-level messages */
+ CTDL_DEBUG /* debug-level messages */
};
#ifdef __GNUC__
case pass_ok:
logged_in_response();
return;
- cprintf("%d Can't find user record!\n",
- ERROR + INTERNAL_ERROR);
}
}