Merged revisions 570-575,577-578 via svnmerge from
[senf.git] / Socket / CommunicationPolicy.cc
index d67a923..3d67fb4 100644 (file)
@@ -31,7 +31,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <errno.h>
-#include "Utils/Exception.hh"
+#include "../Utils/Exception.hh"
 #include "ServerSocketHandle.hh"
 
 //#include "CommunicationPolicy.mpp"
@@ -45,8 +45,8 @@ prefix_ void senf::ConnectedCommunicationPolicy::do_listen(FileHandle handle,
 }
 
 prefix_ int senf::ConnectedCommunicationPolicy::do_accept(FileHandle handle,
-                                                                 struct sockaddr * addr,
-                                                                 unsigned len)
+                                                          struct sockaddr * addr,
+                                                          unsigned len)
 {
     int rv = -1;
     do {
@@ -58,7 +58,7 @@ prefix_ int senf::ConnectedCommunicationPolicy::do_accept(FileHandle handle,
             case EINTR:
                 break;
             default:
-                throw SystemException(errno);
+                throwErrno();
             }
     } while (rv<0);
     return rv;