]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/lock.c
cleanup comments
[openldap] / servers / slapd / lock.c
index bc8a4fc8a4089b4b28f2a92b248d155a7d90b67c..fb5c5bb7152ed1749545cadfecc5439047c85ba9 100644 (file)
@@ -18,6 +18,7 @@
 #include <sys/file.h>
 #endif
 
+#include <lutil.h>
 #include "slap.h"
 
 FILE *
@@ -27,11 +28,11 @@ lock_fopen( const char *fname, const char *type, FILE **lfp )
        char    buf[MAXPATHLEN];
 
        /* open the lock file */
-       strcpy(slap_strcopy( buf, fname ), ".lock" );
+       strcpy(lutil_strcopy( buf, fname ), ".lock" );
        if ( (*lfp = fopen( buf, "w" )) == NULL ) {
 #ifdef NEW_LOGGING
-               LDAP_LOG(( "operation", LDAP_LEVEL_ERR,
-                          "lock_fopen: could not open lock file \"%s\".\n", buf ));
+               LDAP_LOG( OPERATION, ERR, 
+                       "lock_fopen: could not open lock file \"%s\".\n", buf, 0, 0);
 #else
                Debug( LDAP_DEBUG_ANY, "could not open \"%s\"\n", buf, 0, 0 );
 #endif
@@ -45,8 +46,8 @@ lock_fopen( const char *fname, const char *type, FILE **lfp )
        /* open the log file */
        if ( (fp = fopen( fname, type )) == NULL ) {
 #ifdef NEW_LOGGING
-               LDAP_LOG(( "operation", LDAP_LEVEL_ERR,
-                          "lock_fopen: could not open log file \"%s\".\n", buf ));
+               LDAP_LOG( OPERATION, ERR, 
+                       "lock_fopen: could not open log file \"%s\".\n", buf, 0, 0);
 #else
                Debug( LDAP_DEBUG_ANY, "could not open \"%s\"\n", fname, 0, 0 );
 #endif