Use Gnulib's `getaddrinfo' module.
[bpt/guile.git] / lib / flock.c
index 2993432..72eef5b 100644 (file)
@@ -6,7 +6,7 @@
 
    Written by Richard W.M. Jones <rjones.at.redhat.com>
 
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008-2010 Free Software Foundation, Inc.
 
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
@@ -130,27 +130,27 @@ flock (int fd, int operation)
     {
       DWORD err = GetLastError ();
       switch (err)
-       {
-         /* This means someone else is holding a lock. */
-       case ERROR_LOCK_VIOLATION:
-         errno = EAGAIN;
-         break;
-
-         /* Out of memory. */
-       case ERROR_NOT_ENOUGH_MEMORY:
-         errno = ENOMEM;
-         break;
-
-       case ERROR_BAD_COMMAND:
-         errno = EINVAL;
-         break;
-
-         /* Unlikely to be other errors, but at least don't lose the
-          * error code.
-          */
-       default:
-         errno = err;
-       }
+        {
+          /* This means someone else is holding a lock. */
+        case ERROR_LOCK_VIOLATION:
+          errno = EAGAIN;
+          break;
+
+          /* Out of memory. */
+        case ERROR_NOT_ENOUGH_MEMORY:
+          errno = ENOMEM;
+          break;
+
+        case ERROR_BAD_COMMAND:
+          errno = EINVAL;
+          break;
+
+          /* Unlikely to be other errors, but at least don't lose the
+           * error code.
+           */
+        default:
+          errno = err;
+        }
 
       return -1;
     }