fix compile warning on solaris
This commit is contained in:
parent
92b68a1df7
commit
f5937a5bdf
|
@ -41,6 +41,9 @@
|
||||||
#define sigar_isalpha(c) \
|
#define sigar_isalpha(c) \
|
||||||
(isalpha(((unsigned char)(c))))
|
(isalpha(((unsigned char)(c))))
|
||||||
|
|
||||||
|
#define sigar_isupper(c) \
|
||||||
|
(isupper(((unsigned char)(c))))
|
||||||
|
|
||||||
#ifndef PROC_FS_ROOT
|
#ifndef PROC_FS_ROOT
|
||||||
#define PROC_FS_ROOT "/proc/"
|
#define PROC_FS_ROOT "/proc/"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -899,7 +899,7 @@ static int ptql_branch_parse(char *query, ptql_parse_branch_t *branch)
|
||||||
if (*query) {
|
if (*query) {
|
||||||
char flag;
|
char flag;
|
||||||
|
|
||||||
while (isupper((flag = *query))) {
|
while (sigar_isupper((flag = *query))) {
|
||||||
switch (flag) {
|
switch (flag) {
|
||||||
case 'P':
|
case 'P':
|
||||||
branch->op_flags |= PTQL_OP_FLAG_PARENT;
|
branch->op_flags |= PTQL_OP_FLAG_PARENT;
|
||||||
|
|
Loading…
Reference in New Issue