mirror of https://github.com/openssl/openssl.git
				
				
				
			Fix some style issues
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1342)
This commit is contained in:
		
							parent
							
								
									55b09fe69a
								
							
						
					
					
						commit
						fd4b0c0832
					
				
							
								
								
									
										19
									
								
								apps/speed.c
								
								
								
								
							
							
						
						
									
										19
									
								
								apps/speed.c
								
								
								
								
							|  | @ -1075,8 +1075,7 @@ static int run_benchmark(int async_jobs, int (*loop_function)(void *), loopargs_ | |||
|     int job_op_count = 0; | ||||
|     int total_op_count = 0; | ||||
|     int num_inprogress = 0; | ||||
|     int error = 0; | ||||
|     int i = 0; | ||||
|     int error = 0, i = 0, async = 0; | ||||
|     OSSL_ASYNC_FD job_fd = 0; | ||||
|     size_t num_job_fds = 0; | ||||
| 
 | ||||
|  | @ -1086,11 +1085,11 @@ static int run_benchmark(int async_jobs, int (*loop_function)(void *), loopargs_ | |||
|         return loop_function((void *)loopargs); | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
|     for (i = 0; i < async_jobs && !error; i++) { | ||||
|         switch (ASYNC_start_job(&(loopargs[i].inprogress_job), loopargs[i].wait_ctx, | ||||
|         async = ASYNC_start_job(&(loopargs[i].inprogress_job), loopargs[i].wait_ctx, | ||||
|                                 &job_op_count, loop_function, | ||||
|                                 (void *)(loopargs + i), sizeof(loopargs_t))) { | ||||
|                                 (void *)(loopargs + i), sizeof(loopargs_t)); | ||||
|         switch (async) { | ||||
|         case ASYNC_PAUSE: | ||||
|             ++num_inprogress; | ||||
|             break; | ||||
|  | @ -1179,14 +1178,16 @@ static int run_benchmark(int async_jobs, int (*loop_function)(void *), loopargs_ | |||
|             if (num_job_fds == 1 && !FD_ISSET(job_fd, &waitfdset)) | ||||
|                 continue; | ||||
| #elif defined(OPENSSL_SYS_WINDOWS) | ||||
|             if (num_job_fds == 1 && | ||||
|                     !PeekNamedPipe(job_fd, NULL, 0, NULL, &avail, NULL) && avail > 0) | ||||
|             if (num_job_fds == 1 | ||||
|                 && !PeekNamedPipe(job_fd, NULL, 0, NULL, &avail, NULL)  | ||||
|                 && avail > 0) | ||||
|                 continue; | ||||
| #endif | ||||
| 
 | ||||
|             switch (ASYNC_start_job(&(loopargs[i].inprogress_job), loopargs[i].wait_ctx, | ||||
|             async = ASYNC_start_job(&(loopargs[i].inprogress_job), loopargs[i].wait_ctx, | ||||
|                         &job_op_count, loop_function, (void *)(loopargs + i), | ||||
|                         sizeof(loopargs_t))) { | ||||
|                         sizeof(loopargs_t)); | ||||
|             switch (async) { | ||||
|             case ASYNC_PAUSE: | ||||
|                 break; | ||||
|             case ASYNC_FINISH: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue