Skip to content

Commit 8ec13f0

Browse files
InterLinked1Friendly Automation
authored and
Friendly Automation
committed
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
1 parent 5c67a99 commit 8ec13f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: include/asterisk/strings.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,13 @@ enum ast_strsep_flags {
289289
char *mystr = ast_strdupa("abc=def,ghi='zzz=yyy,456',jkl");
290290
char *token, *token2, *token3;
291291
292-
while((token = ast_strsep(&mystr, ',', AST_SEP_STRIP))) {
292+
while((token = ast_strsep(&mystr, ',', AST_STRSEP_STRIP))) {
293293
// 1st token will be aaa=def
294294
// 2nd token will be ghi='zzz=yyy,456'
295-
while((token2 = ast_strsep(&token, '=', AST_SEP_STRIP))) {
295+
while((token2 = ast_strsep(&token, '=', AST_STRSEP_STRIP))) {
296296
// 1st token2 will be ghi
297297
// 2nd token2 will be zzz=yyy,456
298-
while((token3 = ast_strsep(&token2, ',', AST_SEP_STRIP))) {
298+
while((token3 = ast_strsep(&token2, ',', AST_STRSEP_STRIP))) {
299299
// 1st token3 will be zzz=yyy
300300
// 2nd token3 will be 456
301301
// and so on

0 commit comments

Comments
 (0)