diff src/protocols/irc/irc.c @ 3720:34c95669952f

[gaim-migrate @ 3853] WIN32 ifdef removals committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Wed, 16 Oct 2002 21:14:51 +0000
parents da6e3c984985
children a20bf3d247ff
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Wed Oct 16 20:02:57 2002 +0000
+++ b/src/protocols/irc/irc.c	Wed Oct 16 21:14:51 2002 +0000
@@ -138,11 +138,7 @@
 static int irc_write(int fd, char *data, int len)
 {
 	debug_printf("IRC C: %s", data);
-#ifndef _WIN32
 	return write(fd, data, len);
-#else
-	return send(fd, data, len, 0);
-#endif
 }
 
 static struct conversation *irc_find_chat(struct gaim_connection *gc, char *name)
@@ -458,11 +454,7 @@
 	int n = 0, l;
 	struct conversation *convo;
 	debug_printf("THIS IS TOO MUCH EFFORT\n");
-#ifndef _WIN32
 	n = read (chat->fd, buffer, IRC_BUF_LEN);
-#else
-	n = recv (chat->fd, buffer, IRC_BUF_LEN, 0);
-#endif
 	if (n > 0) {
 
 		buffer[n] = 0;
@@ -1423,11 +1415,7 @@
 	gchar buf[1024];
 	gboolean off;
 
-#ifndef _WIN32
 	i = read(idata->fd, buf, 1024);
-#else
-	i = recv(idata->fd, buf, 1024, 0);
-#endif
 	if (i <= 0) {
 		hide_login_progress_error(gc, "Read error");
 		signoff(gc);
@@ -1481,11 +1469,7 @@
 	char buf[IRC_BUF_LEN];
 
 	if (!g_slist_find(connections, gc)) {
-#ifndef _WIN32
 		close(source);
-#else
-		closesocket(source);
-#endif
 		return;
 	}
 
@@ -1601,11 +1585,7 @@
 	if (gc->inpa)
 		gaim_input_remove(gc->inpa);
 
-#ifndef _WIN32
 	close(idata->fd);
-#else
-	closesocket(idata->fd);
-#endif
 	g_free(gc->proto_data);
 }