OSSP CVS Repository

ossp - Check-in [4707]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4707
Date: 2004-Sep-12 14:02:50 (local)
2004-Sep-12 12:02:50 (UTC)
User:rse
Branch:
Comment: Fix syscall wrapper for sendto(2).

Obtained from: NetBSD pkgsrc patches

Tickets:
Inspections:
Files:
ossp-pkg/pth/ChangeLog      1.621 -> 1.622     3 inserted, 0 deleted
ossp-pkg/pth/pth_syscall.c      1.30 -> 1.31     1 inserted, 1 deleted

ossp-pkg/pth/ChangeLog 1.621 -> 1.622

--- ChangeLog    2004/09/12 11:59:08     1.621
+++ ChangeLog    2004/09/12 12:02:50     1.622
@@ -21,6 +21,9 @@
                   
   Changes between 2.0.1 and 2.0.2 (13-Jul-2003 to 12-Sep-2004)
 
+   *) Fix syscall wrapper for sendto(2).
+      [NetBSD pkgsrc patches]
+
    *) Use "(char *)NULL" instead of plain "NULL" in last argument to
       execl(2) to avoid GCC 3.5's "warning: missing sentinel in function call".
       [Ralf S. Engelschall]


ossp-pkg/pth/pth_syscall.c 1.30 -> 1.31

--- pth_syscall.c        2004/07/13 10:50:49     1.30
+++ pth_syscall.c        2004/09/12 12:02:50     1.31
@@ -664,7 +664,7 @@
     /* internal exit point for Pth */
     if (pth_syscall_fct_tab[PTH_SCF_sendto].addr != NULL)
         return ((ssize_t (*)(int, const void *, size_t, int, const struct sockaddr *, socklen_t))
-               pth_syscall_fct_tab[PTH_SCF_recvfrom].addr)
+               pth_syscall_fct_tab[PTH_SCF_sendto].addr)
                (fd, buf, nbytes, flags, to, tolen);
 #if defined(HAVE_SYSCALL) && defined(SYS_sendto)
     else return (ssize_t)syscall(SYS_sendto, fd, buf, nbytes, flags, to, tolen);

CVSTrac 2.0.1