X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblber%2Fnt_err.c;h=407d67307eae552f2d5f271c49aeead781d66d37;hb=badc324647013efa952c1f4cc7147dd527086a8f;hp=bc3f4e7cebce0d10acb377949b415733e61ef911;hpb=d0991d97fb4295fb48b70c212b553428ad271a07;p=openldap diff --git a/libraries/liblber/nt_err.c b/libraries/liblber/nt_err.c index bc3f4e7ceb..407d67307e 100644 --- a/libraries/liblber/nt_err.c +++ b/libraries/liblber/nt_err.c @@ -1,13 +1,23 @@ /* $OpenLDAP$ */ -/* - * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved. - * COPYING RESTRICTIONS APPLY, see COPYRIGHT file +/* This work is part of OpenLDAP Software . + * + * Copyright 1998-2011 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 + * . */ + #include "portable.h" #ifdef HAVE_WINSOCK2 #include -#elif HAVE_WINSOCK +#elif defined(HAVE_WINSOCK) #include #endif /* HAVE_WINSOCK(2) */ @@ -15,8 +25,7 @@ char *ber_pvt_wsa_err2string( int err ) { - switch( err ) - { + switch( err ) { LBER_RETSTR( WSAEINTR ) LBER_RETSTR( WSAEBADF ) LBER_RETSTR( WSAEACCES ) @@ -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 +}