]> git.sur5r.net Git - openldap/blobdiff - libraries/liblber/nt_err.c
Sync with HEAD
[openldap] / libraries / liblber / nt_err.c
index e5f64691d19dda4f4f876d8eb643bdc6ec936b09..5d0ac13e92aaa696d481ec7ae759ee5e30d4bf2e 100644 (file)
@@ -1,8 +1,18 @@
 /* $OpenLDAP$ */
-/*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 1998-2003 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
  */
+
 #include "portable.h"
 
 #ifdef HAVE_WINSOCK2
@@ -15,8 +25,7 @@
 
 char *ber_pvt_wsa_err2string( int err )
 {
-       switch( err )
-       {
+       switch( err ) {
                LBER_RETSTR( WSAEINTR )
                LBER_RETSTR( WSAEBADF )
                LBER_RETSTR( WSAEACCES )
@@ -76,7 +85,7 @@ char *ber_pvt_wsa_err2string( int err )
                LBER_RETSTR( WSA_E_NO_MORE )
                LBER_RETSTR( WSA_E_CANCELLED )
                LBER_RETSTR( WSAEREFUSED )
-#endif // HAVE_WINSOCK2        
+#endif /* HAVE_WINSOCK2        */
 
                LBER_RETSTR( WSAHOST_NOT_FOUND )
                LBER_RETSTR( WSATRY_AGAIN )
@@ -84,4 +93,4 @@ char *ber_pvt_wsa_err2string( int err )
                LBER_RETSTR( WSANO_DATA )
        }
        return "unknown WSA error";
-}
\ No newline at end of file
+}