diff src/lib/network.c @ 64:83ae914a583a HEAD

added t_strdup_noconst() which can be used instead of (char *) t_strdup(). Removed several castings that removed the const qualifier.
author Timo Sirainen <tss@iki.fi>
date Wed, 28 Aug 2002 07:54:23 +0300
parents a3d77e73f99b
children e0193106a95d
line wrap: on
line diff
--- a/src/lib/network.c	Wed Aug 28 07:43:06 2002 +0300
+++ b/src/lib/network.c	Wed Aug 28 07:54:23 2002 +0300
@@ -369,7 +369,7 @@
 	i_assert(data != NULL);
 	i_assert(len <= INT_MAX);
 
-	ret = send(fd, (void *) data, len, 0);
+	ret = send(fd, data, len, 0);
 	if (ret == -1 && (errno == EINTR || errno == EPIPE || errno == EAGAIN))
                 return 0;