|
2 | 2 | #include <pyconfig.h> |
3 | 3 |
|
4 | 4 | #include <cstdint> |
| 5 | +#include <cstring> |
5 | 6 | #include <ctime> |
6 | 7 | #include <fstream> |
7 | 8 | #include <list> |
@@ -750,20 +751,20 @@ static irods::error exec_rule_text(const irods::default_re_ctx&, |
750 | 751 | if (mp->type == NULL) { |
751 | 752 | rule_vars_python[label] = NULL; |
752 | 753 | } |
753 | | - else if (strcmp(mp->type, DOUBLE_MS_T) == 0) { |
| 754 | + else if (std::strcmp(mp->type, DOUBLE_MS_T) == 0) { |
754 | 755 | double* tmpDouble = (double*) mp->inOutStruct; |
755 | 756 | rule_vars_python[label] = tmpDouble; |
756 | 757 | } |
757 | | - else if (strcmp(mp->type, INT_MS_T) == 0) { |
| 758 | + else if (std::strcmp(mp->type, INT_MS_T) == 0) { |
758 | 759 | int* tmpInt = (int*) mp->inOutStruct; |
759 | 760 | rule_vars_python[label] = tmpInt; |
760 | 761 | } |
761 | | - else if (strcmp(mp->type, STR_MS_T) == 0) { |
| 762 | + else if (std::strcmp(mp->type, STR_MS_T) == 0) { |
762 | 763 | char* tmpChar = (char*) mp->inOutStruct; |
763 | 764 | std::string tmpStr(tmpChar); |
764 | 765 | rule_vars_python[label] = tmpStr; |
765 | 766 | } |
766 | | - else if (strcmp(mp->type, DATETIME_MS_T) == 0) { |
| 767 | + else if (std::strcmp(mp->type, DATETIME_MS_T) == 0) { |
767 | 768 | rodsLong_t* tmpRodsLong = (rodsLong_t*) mp->inOutStruct; |
768 | 769 | rule_vars_python[label] = tmpRodsLong; |
769 | 770 | } |
@@ -899,20 +900,20 @@ static irods::error exec_rule_expression(irods::default_re_ctx&, |
899 | 900 | if (mp->type == NULL) { |
900 | 901 | rule_vars_python[label] = boost::python::object{}; |
901 | 902 | } |
902 | | - else if (strcmp(mp->type, DOUBLE_MS_T) == 0) { |
| 903 | + else if (std::strcmp(mp->type, DOUBLE_MS_T) == 0) { |
903 | 904 | double* tmpDouble = (double*) mp->inOutStruct; |
904 | 905 | rule_vars_python[label] = tmpDouble; |
905 | 906 | } |
906 | | - else if (strcmp(mp->type, INT_MS_T) == 0) { |
| 907 | + else if (std::strcmp(mp->type, INT_MS_T) == 0) { |
907 | 908 | int* tmpInt = (int*) mp->inOutStruct; |
908 | 909 | rule_vars_python[label] = tmpInt; |
909 | 910 | } |
910 | | - else if (strcmp(mp->type, STR_MS_T) == 0) { |
| 911 | + else if (std::strcmp(mp->type, STR_MS_T) == 0) { |
911 | 912 | char* tmpChar = (char*) mp->inOutStruct; |
912 | 913 | std::string tmpStr(tmpChar); |
913 | 914 | rule_vars_python[label] = tmpStr; |
914 | 915 | } |
915 | | - else if (strcmp(mp->type, DATETIME_MS_T) == 0) { |
| 916 | + else if (std::strcmp(mp->type, DATETIME_MS_T) == 0) { |
916 | 917 | rodsLong_t* tmpRodsLong = (rodsLong_t*) mp->inOutStruct; |
917 | 918 | rule_vars_python[label] = tmpRodsLong; |
918 | 919 | } |
|
0 commit comments