paines / ypsilon

Automatically exported from code.google.com/p/ypsilon
Other
0 stars 0 forks source link

last couple of parameters of socket_open() and subr_make_socket() transposed #126

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It seems a typo (but harmless), that the last couple of parameters of
socket_open() and subr_make_socket() mismatches,
I think they should be transposed:

Index: src/socket.cpp
===================================================================
--- src/socket.cpp  (revision 503)
+++ src/socket.cpp  (working copy)
@@ -28,7 +28,7 @@
 }

 void
-socket_open(scm_socket_t s, const char* node, const char* service, int
family, int type, int flags, int protocol)
+socket_open(scm_socket_t s, const char* node, const char* service, int
family, int type, int protocol, int flags)
 {
     struct addrinfo hints;
     struct addrinfo* list;
Index: src/subr_socket.cpp
===================================================================
--- src/subr_socket.cpp (revision 503)
+++ src/subr_socket.cpp (working copy)
@@ -25,8 +25,8 @@
                 int flags;
                 CONVERT_TO_MACHINE_INT(2, "make-socket", &family);
                 CONVERT_TO_MACHINE_INT(3, "make-socket", &socktype);
-                CONVERT_TO_MACHINE_INT(4, "make-socket", &protocol);
-                CONVERT_TO_MACHINE_INT(5, "make-socket", &flags);
+                CONVERT_TO_MACHINE_INT(4, "make-socket", &flags);
+                CONVERT_TO_MACHINE_INT(5, "make-socket", &protocol);
                 try {
                     const char* node = NULL;
                     const char* service = NULL;

Original issue reported on code.google.com by tabe.fix...@gmail.com on 3 Sep 2009 at 8:57