X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslurpd%2Fsanity.c;h=ab6880c0b0c09686d961372ed63d270b42db2e69;hb=a44adcfb43c4030328d8a92c56e6cc4018ee5d4f;hp=04be7db86af87d728e9f03c83735cd62d3587613;hpb=42e0d83cb3a1a1c5b25183f1ab74ce7edbe25de7;p=openldap diff --git a/servers/slurpd/sanity.c b/servers/slurpd/sanity.c index 04be7db86a..ab6880c0b0 100644 --- a/servers/slurpd/sanity.c +++ b/servers/slurpd/sanity.c @@ -1,3 +1,4 @@ +/* $OpenLDAP$ */ /* * Copyright (c) 1996 Regents of the University of Michigan. * All rights reserved. @@ -18,13 +19,15 @@ * feedback to the users. */ +#include "portable.h" + #include -#include -#include + +#include +#include #include "slurp.h" #include "globals.h" -#include "portable.h" #define FC_DIRBAD 1 #define FC_DIRUNREAD 2 @@ -37,11 +40,7 @@ /* * Forward declarations */ -#ifdef NEEDPROTOS -static unsigned int filecheck( char * ); -#else /* NEEDPROTOS */ -static unsigned int filecheck(); -#endif /* NEEDPROTOS */ +static unsigned int filecheck LDAP_P(( char * )); @@ -58,7 +57,7 @@ static unsigned int filecheck(); */ int -sanity() +sanity( void ) { int err = 0; int rc; @@ -175,7 +174,7 @@ filecheck( char *p; unsigned int ret = 0; - strcpy( dir, sglob->slapd_replogfile ); + strcpy( dir, f ); p = strrchr( dir, '/' ); if ( p != NULL ) { *p = '\0'; @@ -201,4 +200,3 @@ filecheck( return ret; } -