mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 14:44:17 +00:00
FSCORE-253 work around netbsd failures
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10762 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
6113ab943c
commit
5c5d03bcdc
2 files changed
+10
-8
No files matched your search
@@ -11,6 +11,7 @@
|
||||
#include "exprincl.h"
|
||||
|
||||
#include "exprpriv.h"
|
||||
#include "switch_utils.h"
|
||||
|
||||
|
||||
/* Return the version number */
|
||||
@@ -27,13 +28,13 @@ int exprValidIdent(char *name)
|
||||
return 0;
|
||||
|
||||
/* First must be letter or underscore */
|
||||
if (isalpha(*name) || *name == '_')
|
||||
if (switch_isalpha(*name) || *name == '_')
|
||||
name++; /* Point to next letter */
|
||||
else
|
||||
return 0; /* Not letter or underscore, maybe empty */
|
||||
|
||||
/* others can be letter, number, or underscore */
|
||||
while (isalnum(*name) || *name == '_')
|
||||
while (switch_isalnum(*name) || *name == '_')
|
||||
name++;
|
||||
|
||||
/* When the while breaks out, we should be at the end */
|
||||
|
||||
Reference in new issue
Block a user