]> xenbits.xensource.com Git - libvirt.git/commitdiff
Remove DOS line-endings.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 23 Jan 2008 14:50:14 +0000 (14:50 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 23 Jan 2008 14:50:14 +0000 (14:50 +0000)
        * src/socketcompat.h: Remove DOS line-endings in this file.

ChangeLog
src/socketcompat.h

index c9b253e37f0b294e285850e42bbc8181b9af0a27..91f06399dd2cd2ed4cea18ebf1eb98f98d5917e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jan 23 14:43:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
+
+       Remove DOS line-endings.
+       * src/socketcompat.h: Remove DOS line-endings in this file.
+
 Tue Jan 22 16:27:47 EST 2008 Daniel P. Berrange <berrange@redhat.com>
 
        * configure.ac: Remove use of PKG_CHECK_EXISTS macro. Avoid
index 0a8884cb50787199f01aa120263923f558254d66..f9353f171a4527c633460ee4b2ee2baa495acf66 100644 (file)
@@ -1,60 +1,60 @@
-/*\r
- * socketcompat.h: Socket compatibility for Windows, making it slightly\r
- * less painful to use.\r
- *\r
- * Use this header under the following circumstances:\r
- * (a) Instead of including any of: <net/if.h>, <netinet/in.h>,\r
- *     <sys/socket.h>, <netdb.h>, <netinet/tcp.h>, AND\r
- * (b) The file will be part of what is built on Windows (basically\r
- *     just remote client stuff).\r
- *\r
- * You need to use socket_errno() instead of errno to get socket\r
- * errors.\r
- *\r
- * Copyright (C) 2008 Red Hat, Inc.\r
- *\r
- * See COPYING.LIB for the License of this software\r
- *\r
- * Richard W.M. Jones <rjones@redhat.com>\r
- */\r
-\r
-#ifndef __SOCKETCOMPAT_H__\r
-#define __SOCKETCOMPAT_H__\r
-\r
-#include <config.h>\r
-\r
-#include <errno.h>\r
-\r
-#ifndef HAVE_WINSOCK2_H                /* Unix & Cygwin. */\r
-\r
-#include <sys/socket.h>\r
-#include <net/if.h>\r
-#include <netinet/in.h>\r
-#include <netinet/tcp.h>\r
-\r
-static inline int\r
-socket_errno (void)\r
-{\r
-  return errno;\r
-}\r
-\r
-#else                           /* MinGW & Win32 */\r
-\r
-#include <winsock2.h>\r
-\r
-/* Socket functions in Windoze don't set errno.  Instead of using errno\r
- * to test for socket errors, call this function to get the errno.\r
- */\r
-static inline int\r
-socket_errno (void)\r
-{\r
-  return WSAGetLastError ();\r
-}\r
-\r
-/* Compatibility. */\r
-#define EWOULDBLOCK             WSAEWOULDBLOCK\r
-#define ECONNREFUSED            WSAECONNREFUSED\r
-\r
-#endif /* HAVE_WINSOCK2_H */\r
-\r
-#endif /* __WINSOCKWRAPPER_H__ */\r
+/*
+ * socketcompat.h: Socket compatibility for Windows, making it slightly
+ * less painful to use.
+ *
+ * Use this header under the following circumstances:
+ * (a) Instead of including any of: <net/if.h>, <netinet/in.h>,
+ *     <sys/socket.h>, <netdb.h>, <netinet/tcp.h>, AND
+ * (b) The file will be part of what is built on Windows (basically
+ *     just remote client stuff).
+ *
+ * You need to use socket_errno() instead of errno to get socket
+ * errors.
+ *
+ * Copyright (C) 2008 Red Hat, Inc.
+ *
+ * See COPYING.LIB for the License of this software
+ *
+ * Richard W.M. Jones <rjones@redhat.com>
+ */
+
+#ifndef __SOCKETCOMPAT_H__
+#define __SOCKETCOMPAT_H__
+
+#include <config.h>
+
+#include <errno.h>
+
+#ifndef HAVE_WINSOCK2_H                /* Unix & Cygwin. */
+
+#include <sys/socket.h>
+#include <net/if.h>
+#include <netinet/in.h>
+#include <netinet/tcp.h>
+
+static inline int
+socket_errno (void)
+{
+  return errno;
+}
+
+#else                           /* MinGW & Win32 */
+
+#include <winsock2.h>
+
+/* Socket functions in Windoze don't set errno.  Instead of using errno
+ * to test for socket errors, call this function to get the errno.
+ */
+static inline int
+socket_errno (void)
+{
+  return WSAGetLastError ();
+}
+
+/* Compatibility. */
+#define EWOULDBLOCK             WSAEWOULDBLOCK
+#define ECONNREFUSED            WSAECONNREFUSED
+
+#endif /* HAVE_WINSOCK2_H */
+
+#endif /* __WINSOCKWRAPPER_H__ */