Remove unused variables

This commit is contained in:
Hallvard Furuseth 1999-03-06 06:33:34 +00:00
parent 4d7138a45c
commit 984bdfa605
15 changed files with 16 additions and 50 deletions

View File

@ -1045,8 +1045,6 @@ charray_add_dup(
char *s
)
{
int n;
if ( *a == NULL ) {
*a = (char **) malloc( (BUFSIZ + 1) * sizeof(char *) );
*cur = 0;

View File

@ -29,9 +29,7 @@ usage( char *name )
int
main( int argc, char **argv )
{
int i, cargc, indb, stop, status;
char *cargv[MAXARGS];
char *defargv[MAXARGS];
int i, stop;
char *linep, *buf;
char line[BUFSIZ];
int lineno, elineno;
@ -43,7 +41,6 @@ main( int argc, char **argv )
struct ldbminfo *li;
struct berval bv;
struct berval *vals[2];
Avlnode *avltypes = NULL;
tailorfile = SLAPD_DEFAULT_CONFIGFILE;
dbnum = -1;

View File

@ -29,9 +29,7 @@ usage( char *name )
int
main( int argc, char **argv )
{
int i, cargc, indb, stop, status;
char *cargv[MAXARGS];
char *defargv[MAXARGS];
int i, stop;
char *linep, *buf;
char line[BUFSIZ];
int lineno, elineno;
@ -43,7 +41,6 @@ main( int argc, char **argv )
struct ldbminfo *li;
struct berval bv;
struct berval *vals[2];
Avlnode *avltypes = NULL;
tailorfile = SLAPD_DEFAULT_CONFIGFILE;
dbnum = -1;

View File

@ -27,10 +27,8 @@ usage( char *name )
int
main( int argc, char **argv )
{
int i, cargc, indb, stop, status;
char *cargv[MAXARGS];
char *defargv[MAXARGS];
char *linep, *buf;
int i, stop;
char *buf;
char line[BUFSIZ], idbuf[BUFSIZ];
int lmax, lcur;
int dbnum;
@ -40,7 +38,6 @@ main( int argc, char **argv )
struct ldbminfo *li;
struct berval bv;
struct berval *vals[2];
Avlnode *avltypes = NULL;
FILE *fp;
tailorfile = SLAPD_DEFAULT_CONFIGFILE;
@ -125,8 +122,6 @@ main( int argc, char **argv )
vals[0] = &bv;
vals[1] = NULL;
while ( ! stop ) {
char *type, *val, *s;
int vlen;
Datum key, data;
ldbm_datum_init( key );

View File

@ -27,10 +27,8 @@ usage( char *name )
int
main( int argc, char **argv )
{
int i, cargc, indb, stop, status;
char *cargv[MAXARGS];
char *defargv[MAXARGS];
char *linep, *buf;
int i, stop;
char *buf;
char line[BUFSIZ], idbuf[BUFSIZ];
int lmax, lcur;
int dbnum;
@ -40,7 +38,6 @@ main( int argc, char **argv )
struct ldbminfo *li;
struct berval bv;
struct berval *vals[2];
Avlnode *avltypes = NULL;
FILE *fp;
tailorfile = SLAPD_DEFAULT_CONFIGFILE;
@ -125,8 +122,6 @@ main( int argc, char **argv )
vals[0] = &bv;
vals[1] = NULL;
while ( ! stop ) {
char *type, *val, *s;
int vlen;
Datum key, data;
ldbm_datum_init( key );

View File

@ -26,9 +26,7 @@ usage( char *name )
int
main( int argc, char **argv )
{
int i, cargc, indb, stop;
char *cargv[MAXARGS];
char *defargv[MAXARGS];
int i, stop;
char *tailorfile, *inputfile;
char *linep, *buf, *attr;
char line[BUFSIZ];

View File

@ -26,9 +26,7 @@ usage( char *name )
int
main( int argc, char **argv )
{
int i, cargc, indb, stop;
char *cargv[MAXARGS];
char *defargv[MAXARGS];
int i, stop;
char *tailorfile, *inputfile;
char *linep, *buf, *attr;
char line[BUFSIZ];

View File

@ -23,7 +23,6 @@
static void fork_child( char *prog, char *args[] );
static void wait4kids( int nkidval );
static char *indexcmd;
static char *tailorfile;
static char *inputfile;
static int maxkids = 1;
@ -39,7 +38,7 @@ usage( char *name )
int
main( int argc, char **argv )
{
int i, stop, status;
int i, stop;
char *linep, *buf, *sbindir;
char *args[MAXARGS];
char buf2[20], buf3[20];
@ -216,10 +215,6 @@ main( int argc, char **argv )
while ( ! stop ) {
char *type, *val, *s;
int vlen, indexmask, syntaxmask;
Datum key, data;
ldbm_datum_init( key );
ldbm_datum_init( data );
if ( fgets( line, sizeof(line), stdin ) != NULL ) {
int len;
@ -282,7 +277,7 @@ main( int argc, char **argv )
static void
fork_child( char *prog, char *args[] )
{
int status, pid;
int pid;
wait4kids( maxkids );

View File

@ -23,7 +23,6 @@
static void fork_child( char *prog, char *args[] );
static void wait4kids( int nkidval );
static char *indexcmd;
static char *tailorfile;
static char *inputfile;
static int maxkids = 1;
@ -39,7 +38,7 @@ usage( char *name )
int
main( int argc, char **argv )
{
int i, stop, status;
int i, stop;
char *linep, *buf, *sbindir;
char *args[MAXARGS];
char buf2[20], buf3[20];
@ -216,10 +215,6 @@ main( int argc, char **argv )
while ( ! stop ) {
char *type, *val, *s;
int vlen, indexmask, syntaxmask;
Datum key, data;
ldbm_datum_init( key );
ldbm_datum_init( data );
if ( fgets( line, sizeof(line), stdin ) != NULL ) {
int len;
@ -282,7 +277,7 @@ main( int argc, char **argv )
static void
fork_child( char *prog, char *args[] )
{
int status, pid;
int pid;
wait4kids( maxkids );

View File

@ -171,7 +171,6 @@ populate_queue(
)
{
FILE *fp, *lfp;
Rq *rq = sglob->rq;
char *p;
if ( acquire_lock( f, &fp, &lfp ) < 0 ) {

View File

@ -36,7 +36,6 @@ main(
return( 1 );
#else
int status;
int i;
/*

View File

@ -34,7 +34,7 @@ usage( char *name )
int
main( int argc, char **argv )
{
int i, j;
int i;
char *host = "localhost";
int port = -1;
char *manager = NULL;

View File

@ -30,7 +30,7 @@ usage( char *name )
int
main( int argc, char **argv )
{
int i, j;
int i;
char *host = "localhost";
int port = -1;
char *entry = NULL;

View File

@ -30,7 +30,7 @@ usage( char *name )
int
main( int argc, char **argv )
{
int i, j;
int i;
char *host = "localhost";
int port = -1;
char *sbase = NULL;

View File

@ -305,7 +305,7 @@ get_read_entries( char *filename, char *entries[] )
static void
fork_child( char *prog, char *args[] )
{
int status, pid;
int pid;
wait4kids( maxkids );