extern BackendDB *be_monitor;
+/* increase this bufsize if entries in string form get too big */
+#define BACKMONITOR_BUFSIZE 1024
+
/*
* cache
*/
e_tmp = NULL;
for ( i = nBackendInfo; i--; ) {
- char buf[1024];
+ char buf[ BACKMONITOR_BUFSIZE ];
BackendInfo *bi;
struct berval bv;
int j;
Entry *e, *e_tmp, *e_conn;
struct monitorentrypriv *mp;
- char buf[1024];
+ char buf[ BACKMONITOR_BUFSIZE ];
struct berval bv;
assert( be != NULL );
if ( n != -1 ) {
Attribute *a;
- char buf[16];
+ char buf[] = "+9223372036854775807L";
a = attr_find( e->e_attrs, mi->ad_monitorCounter );
if ( a == NULL ) {
{
struct monitorentrypriv *mp;
struct tm *ltm;
- char buf[ 1024 ];
+ char buf[ BACKMONITOR_BUFSIZE ];
char buf2[ LDAP_LUTIL_GENTIME_BUFSIZE ];
char buf3[ LDAP_LUTIL_GENTIME_BUFSIZE ];
e_tmp = NULL;
for ( i = nBackendDB; i--; ) {
- char buf[1024];
+ char buf[ BACKMONITOR_BUFSIZE ];
int j;
be = &backendDB[i];
i = 0;
do {
Slapi_PluginDesc *srchdesc;
- char buf[1024];
+ char buf[ BACKMONITOR_BUFSIZE ];
struct berval bv;
rc = slapi_pblock_get( pCurrentPB, SLAPI_PLUGIN_DESCRIPTION,
Entry *e, *e_tmp;
struct monitorentrypriv *mp;
int i;
- char buf[1024], *end_of_line;
+ char buf[ BACKMONITOR_BUFSIZE ], *end_of_line;
const char *text;
struct berval bv;
struct m_s {
e_tmp = NULL;
for ( i = 0; l[i]; i++ );
for ( ; i--; ) {
- char buf[1024];
+ char buf[ BACKMONITOR_BUFSIZE ];
snprintf( buf, sizeof( buf ),
"dn: cn=Listener %d,%s\n"
/* set the new debug level */
if ( rc == LDAP_SUCCESS ) {
const char *text;
- static char textbuf[1024];
+ static char textbuf[ BACKMONITOR_BUFSIZE ];
/* check for abandon */
if ( op->o_abandon ) {
Entry *e, *e_tmp, *e_op;
struct monitorentrypriv *mp;
- char buf[1024];
+ char buf[ BACKMONITOR_BUFSIZE ];
int i;
assert( be != NULL );
Entry *e, *e_tmp, *e_conn;
struct monitorentrypriv *mp;
- char buf[1024];
+ char buf[ BACKMONITOR_BUFSIZE ];
struct berval bv;
assert( be != NULL );
Entry *e, *e_tmp, *e_sent;
struct monitorentrypriv *mp;
- char buf[1024];
+ char buf[ BACKMONITOR_BUFSIZE ];
struct berval bv;
assert( be != NULL );
{
struct monitorinfo *mi;
Entry *e;
- static char buf[1024];
+ static char buf[ BACKMONITOR_BUFSIZE ];
struct berval bv;
mi = ( struct monitorinfo * )be->be_private;
struct monitorinfo *mi = (struct monitorinfo *)op->o_bd->be_private;
Attribute *a;
struct berval *b = NULL;
- char buf[1024];
+ char buf[ BACKMONITOR_BUFSIZE ];
assert( mi != NULL );
Entry *e, *e_tmp, *e_time;
struct monitorentrypriv *mp;
- char buf[1024];
+ char buf[ BACKMONITOR_BUFSIZE ];
struct tm *tms;
char tmbuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];