Changeset 1696 for zzuf/trunk/src


Ignore:
Timestamp:
Jan 18, 2007, 1:32:31 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Check recv() return type: int on Linux, ssize_t on OS X.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/lib-fd.c

    r1695 r1696  
    8181#endif
    8282#if defined HAVE_RECV
    83 static int     (*recv_orig)    (int s, void *buf, size_t len, int flags);
     83static RECV_T  (*recv_orig)    (int s, void *buf, size_t len, int flags);
    8484#endif
    8585#if defined HAVE_RECVFROM
    86 static int     (*recvfrom_orig)(int s, void *buf, size_t len, int flags,
     86static RECV_T  (*recvfrom_orig)(int s, void *buf, size_t len, int flags,
    8787                                struct sockaddr *from, SOCKLEN_T *fromlen);
    8888#endif
    8989#if defined HAVE_RECVMSG
    90 static int     (*recvmsg_orig) (int s,  struct msghdr *hdr, int flags);
     90static RECV_T  (*recvmsg_orig) (int s,  struct msghdr *hdr, int flags);
    9191#endif
    9292#if defined READ_USES_SSIZE_T
     
    196196
    197197#if defined HAVE_RECV
    198 int recv(int s, void *buf, size_t len, int flags)
     198RECV_T recv(int s, void *buf, size_t len, int flags)
    199199{
    200200    int ret;
     
    228228
    229229#if defined HAVE_RECVFROM
    230 int recvfrom(int s, void *buf, size_t len, int flags,
     230RECV_T recvfrom(int s, void *buf, size_t len, int flags,
    231231             struct sockaddr *from, SOCKLEN_T *fromlen)
    232232{
     
    262262
    263263#if defined HAVE_RECVMSG
    264 int recvmsg(int s, struct msghdr *hdr, int flags)
     264RECV_T recvmsg(int s, struct msghdr *hdr, int flags)
    265265{
    266266    ssize_t ret;
Note: See TracChangeset for help on using the changeset viewer.