mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Declaring variable outside the for loop
This commit is contained in:
parent
c85529158e
commit
5728110272
@ -85,7 +85,8 @@ int main (int argc, char **argv)
|
||||
int i = 0;
|
||||
pid_t pid;
|
||||
int shmid;
|
||||
|
||||
int h;
|
||||
|
||||
modsec = msc_init();
|
||||
|
||||
key = ftok("shmdemo.c", 'R');
|
||||
@ -110,7 +111,7 @@ int main (int argc, char **argv)
|
||||
|
||||
msc_rules_dump(rules);
|
||||
|
||||
for (int h = 0; h < FORKS; h++) {
|
||||
for (h = 0; h < FORKS; h++) {
|
||||
pid = fork();
|
||||
if (pid == 0) {
|
||||
pthread_create (&thread[h*TRHREADS], NULL, (void *) &process_request, (void *) NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user