From: Naveen Albert Date: Sun, 12 Dec 2021 02:11:21 +0000 (+0000) Subject: strings: Fix enum names in comment examples X-Git-Tag: 18.10.0-rc1~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86bc3eef99ff41177fb751c57a50c1c9d73e7bfb;p=thirdparty%2Fasterisk.git 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 --- diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h index 65a4289cc0..ab46273b60 100644 --- a/include/asterisk/strings.h +++ b/include/asterisk/strings.h @@ -289,13 +289,13 @@ enum ast_strsep_flags { 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