comparison 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
comparison
equal deleted inserted replaced
63:8740373ee20e 64:83ae914a583a
367 367
368 i_assert(fd >= 0); 368 i_assert(fd >= 0);
369 i_assert(data != NULL); 369 i_assert(data != NULL);
370 i_assert(len <= INT_MAX); 370 i_assert(len <= INT_MAX);
371 371
372 ret = send(fd, (void *) data, len, 0); 372 ret = send(fd, data, len, 0);
373 if (ret == -1 && (errno == EINTR || errno == EPIPE || errno == EAGAIN)) 373 if (ret == -1 && (errno == EINTR || errno == EPIPE || errno == EAGAIN))
374 return 0; 374 return 0;
375 375
376 return ret; 376 return ret;
377 } 377 }