From adfaee024534c757133ee10d4128c7f3f06b6560 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 11 Jan 2007 13:47:29 +0000 Subject: [PATCH] make sloops, rloops etc. static so their addresses can be used in initializer. --- tests/progs/slapd-tester.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/progs/slapd-tester.c b/tests/progs/slapd-tester.c index 0f27540661..6cbc13fd10 100644 --- a/tests/progs/slapd-tester.c +++ b/tests/progs/slapd-tester.c @@ -137,7 +137,8 @@ main( int argc, char **argv ) char *sargs[MAXARGS]; int sanum; char scmd[MAXPATHLEN]; - char sloops[] = "18446744073709551615UL"; + /* static so that its address can be used in initializer below. */ + static char sloops[] = "18446744073709551615UL"; /* read */ char *rfile = NULL; char *rreqs[MAXREQS]; @@ -146,14 +147,14 @@ main( int argc, char **argv ) char *rflts[MAXREQS]; int ranum; char rcmd[MAXPATHLEN]; - char rloops[] = "18446744073709551615UL"; + static char rloops[] = "18446744073709551615UL"; /* addel */ char *afiles[MAXREQS]; int anum = 0; char *aargs[MAXARGS]; int aanum; char acmd[MAXPATHLEN]; - char aloops[] = "18446744073709551615UL"; + static char aloops[] = "18446744073709551615UL"; /* modrdn */ char *nfile = NULL; char *nreqs[MAXREQS]; @@ -161,7 +162,7 @@ main( int argc, char **argv ) char *nargs[MAXARGS]; int nanum; char ncmd[MAXPATHLEN]; - char nloops[] = "18446744073709551615UL"; + static char nloops[] = "18446744073709551615UL"; /* modify */ char *mfile = NULL; char *mreqs[MAXREQS]; @@ -170,7 +171,7 @@ main( int argc, char **argv ) char *margs[MAXARGS]; int manum; char mcmd[MAXPATHLEN]; - char mloops[] = "18446744073709551615UL"; + static char mloops[] = "18446744073709551615UL"; /* bind */ char *bfile = NULL; char *breqs[MAXREQS]; @@ -180,7 +181,7 @@ main( int argc, char **argv ) char *bargs[MAXARGS]; int banum; char bcmd[MAXPATHLEN]; - char bloops[] = "18446744073709551615UL"; + static char bloops[] = "18446744073709551615UL"; char **bargs_extra = NULL; char *friendlyOpt = NULL; -- 2.39.5