mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Merge ast_str_opaque branch (discontinue usage of ast_str internals)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@163991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -2034,7 +2034,7 @@ static char *cli_prompt(EditLine *editline) | ||||
| 	if (prompt == NULL) { | ||||
| 		prompt = ast_str_create(100); | ||||
| 	} else if (!cli_prompt_changes) { | ||||
| 		return prompt->str; | ||||
| 		return ast_str_buffer(prompt); | ||||
| 	} else { | ||||
| 		ast_str_reset(prompt); | ||||
| 	} | ||||
| @@ -2132,11 +2132,7 @@ static char *cli_prompt(EditLine *editline) | ||||
| 				} | ||||
| 				t++; | ||||
| 			} else { | ||||
| 				if (prompt->used + 5 > prompt->len) { | ||||
| 					ast_str_make_space(&prompt, prompt->len + 5); | ||||
| 				} | ||||
| 				prompt->str[prompt->used++] = *t++; | ||||
| 				prompt->str[prompt->used] = '\0'; | ||||
| 				ast_str_append(&prompt, 0, "%c", *t); | ||||
| 			} | ||||
| 		} | ||||
| 		if (color_used) { | ||||
| @@ -2149,7 +2145,7 @@ static char *cli_prompt(EditLine *editline) | ||||
| 		ast_str_set(&prompt, 0, "%s", ASTERISK_PROMPT); | ||||
| 	} | ||||
|  | ||||
| 	return(prompt->str);	 | ||||
| 	return ast_str_buffer(prompt);	 | ||||
| } | ||||
|  | ||||
| static char **ast_el_strtoarr(char *buf) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user