comparison src/protocols/jabber/jabber.c @ 3717:988485669631

[gaim-migrate @ 3850] Warning fixes and WIN32 ifdef removals committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Wed, 16 Oct 2002 19:57:03 +0000
parents da6e3c984985
children a20bf3d247ff
comparison
equal deleted inserted replaced
3716:d7e83b4db191 3717:988485669631
33 #include <arpa/inet.h> 33 #include <arpa/inet.h>
34 #include <sys/socket.h> 34 #include <sys/socket.h>
35 #include <sys/utsname.h> 35 #include <sys/utsname.h>
36 #include <unistd.h> 36 #include <unistd.h>
37 #else 37 #else
38 #include <winsock.h>
39 #include "utsname.h" 38 #include "utsname.h"
40 #endif 39 #endif
41 40
42 #include <errno.h> 41 #include <errno.h>
43 #include <string.h> 42 #include <string.h>
507 return; 506 return;
508 507
509 gjab_send_raw(gjc, "</stream:stream>"); 508 gjab_send_raw(gjc, "</stream:stream>");
510 gjc->state = JCONN_STATE_OFF; 509 gjc->state = JCONN_STATE_OFF;
511 gjc->was_connected = 0; 510 gjc->was_connected = 0;
512 #ifndef _WIN32
513 close(gjc->fd); 511 close(gjc->fd);
514 #else
515 closesocket(gjc->fd);
516 #endif
517 gjc->fd = -1; 512 gjc->fd = -1;
518 XML_ParserFree(gjc->parser); 513 XML_ParserFree(gjc->parser);
519 gjc->parser = NULL; 514 gjc->parser = NULL;
520 } 515 }
521 516
757 struct gaim_connection *gc = data; 752 struct gaim_connection *gc = data;
758 struct jabber_data *jd; 753 struct jabber_data *jd;
759 gjconn gjc; 754 gjconn gjc;
760 755
761 if (!g_slist_find(connections, gc)) { 756 if (!g_slist_find(connections, gc)) {
762 #ifndef _WIN32
763 close(source); 757 close(source);
764 #else
765 closesocket(source);
766 #endif
767 return; 758 return;
768 } 759 }
769 760
770 jd = gc->proto_data; 761 jd = gc->proto_data;
771 gjc = jd->gjc; 762 gjc = jd->gjc;