[Asterisk-code-review] strings: Fix enum names in comment examples (asterisk[master])

N A asteriskteam at digium.com
Sat Dec 11 20:15:23 CST 2021


N A has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/17647 )


Change subject: strings: Fix enum names in comment examples
......................................................................

strings: Fix enum names in comment examples

The enum values for ast_strsep_flags includes
AST_STRSEP_STRIP. However, some comments reference
AST_SEP_STRIP, which doesn't exist. This fixes
these comments to use the correct value.

ASTERISK-29800 #close

Change-Id: If7bbd0c0e6226a211d25ddf9d1629347e2674943
---
M include/asterisk/strings.h
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/47/17647/1

diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h
index 9ca3234..f7b5b4a 100644
--- a/include/asterisk/strings.h
+++ b/include/asterisk/strings.h
@@ -285,13 +285,13 @@
 	char *mystr = ast_strdupa("abc=def,ghi='zzz=yyy,456',jkl");
 	char *token, *token2, *token3;
 
-	while((token = ast_strsep(&mystr, ',', AST_SEP_STRIP))) {
+	while((token = ast_strsep(&mystr, ',', AST_STRSEP_STRIP))) {
 		// 1st token will be aaa=def
 		// 2nd token will be ghi='zzz=yyy,456'
-		while((token2 = ast_strsep(&token, '=', AST_SEP_STRIP))) {
+		while((token2 = ast_strsep(&token, '=', AST_STRSEP_STRIP))) {
 			// 1st token2 will be ghi
 			// 2nd token2 will be zzz=yyy,456
-			while((token3 = ast_strsep(&token2, ',', AST_SEP_STRIP))) {
+			while((token3 = ast_strsep(&token2, ',', AST_STRSEP_STRIP))) {
 				// 1st token3 will be zzz=yyy
 				// 2nd token3 will be 456
 				// and so on

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/17647
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: If7bbd0c0e6226a211d25ddf9d1629347e2674943
Gerrit-Change-Number: 17647
Gerrit-PatchSet: 1
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211211/7415ace0/attachment.html>


More information about the asterisk-code-review mailing list