From 88bc524422f59335f52321df987248757c9cc935 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 26 May 2008 20:53:16 +0000 Subject: [PATCH] s/PATH_MAX/MAXPATHLEN/ (ITS#5531) --- servers/slapd/back-bdb/monitor.c | 2 +- servers/slapd/back-monitor/database.c | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/servers/slapd/back-bdb/monitor.c b/servers/slapd/back-bdb/monitor.c index ebc8c7db28..7421cb1cd4 100644 --- a/servers/slapd/back-bdb/monitor.c +++ b/servers/slapd/back-bdb/monitor.c @@ -395,7 +395,7 @@ bdb_monitor_db_open( BackendDB *be ) { struct berval bv, nbv; ber_len_t pathlen = 0, len = 0; - char path[ PATH_MAX ] = { '\0' }; + char path[ MAXPATHLEN ] = { '\0' }; char *fname = bdb->bi_dbenv_home, *ptr; diff --git a/servers/slapd/back-monitor/database.c b/servers/slapd/back-monitor/database.c index bc9858ab9b..ec98abc7bc 100644 --- a/servers/slapd/back-monitor/database.c +++ b/servers/slapd/back-monitor/database.c @@ -33,14 +33,6 @@ static int monitor_back_add_plugin( monitor_info_t *mi, Backend *be, Entry *e ); #endif /* defined(LDAP_SLAPI) */ -/* for PATH_MAX on some systems (e.g. Solaris) */ -#ifdef HAVE_LIMITS_H -#include -#endif /* HAVE_LIMITS_H */ -#ifndef PATH_MAX -#define PATH_MAX 4095 -#endif /* ! PATH_MAX */ - static int monitor_subsys_database_modify( Operation *op, -- 2.39.5