moving declaration to block beginning
This commit is contained in:
		
							parent
							
								
									081ee45712
								
							
						
					
					
						commit
						fb749199db
					
				| @ -182,7 +182,7 @@ int crypt_get_constant(const char* namein, int *valueout) { | ||||
| int crypt_list_all_constants(char *names_list, unsigned int *names_list_size) { | ||||
|     int i; | ||||
|     unsigned int total_len = 0; | ||||
|     char number[32]; | ||||
|     char number[32], *ptr; | ||||
|     int number_len; | ||||
|     int count = sizeof(_crypt_constants) / sizeof(_crypt_constants[0]); | ||||
| 
 | ||||
| @ -205,7 +205,7 @@ int crypt_list_all_constants(char *names_list, unsigned int *names_list_size) { | ||||
|             return -1; | ||||
|         } | ||||
|         /* build the names list */ | ||||
|         char *ptr = names_list; | ||||
|         ptr = names_list; | ||||
|         for (i=0; i<count; i++) { | ||||
|             strcpy(ptr, _crypt_constants[i].name); | ||||
|             ptr += strlen(_crypt_constants[i].name); | ||||
|  | ||||
| @ -269,7 +269,7 @@ int crypt_get_size(const char* namein, unsigned int *sizeout) { | ||||
| int crypt_list_all_sizes(char *names_list, unsigned int *names_list_size) { | ||||
|     int i; | ||||
|     unsigned int total_len = 0; | ||||
|     char number[32]; | ||||
|     char number[32], *ptr; | ||||
|     int number_len; | ||||
|     int count = sizeof(_crypt_sizes) / sizeof(_crypt_sizes[0]); | ||||
| 
 | ||||
| @ -292,7 +292,7 @@ int crypt_list_all_sizes(char *names_list, unsigned int *names_list_size) { | ||||
|             return -1; | ||||
|         } | ||||
|         /* build the names list */ | ||||
|         char *ptr = names_list; | ||||
|         ptr = names_list; | ||||
|         for (i=0; i<count; i++) { | ||||
|             strcpy(ptr, _crypt_sizes[i].name); | ||||
|             ptr += strlen(_crypt_sizes[i].name); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user