Changeset: 9a2a43352288 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9a2a43352288
Modified Files:
tools/merovingian/utils/utils.c
Branch: Jun2016
Log Message:
optpipe is also a default property.
diffs (37 lines):
diff --git a/tools/merovingian/utils/utils.c b/tools/merovingian/utils/utils.c
--- a/tools/merovingian/utils/utils.c
+++ b/tools/merovingian/utils/utils.c
@@ -118,23 +118,16 @@ freeConfFile(confkeyval *list) {
*/
int
defaultProperty(const char *property) {
- // TODO: find a better way to do this
- if (property != NULL && strcmp(property, "type") == 0) {
- return 1;
- } else if (property != NULL && strcmp(property, "shared") == 0) {
- return 1;
- } else if (property != NULL && strcmp(property, "nthreads") == 0) {
- return 1;
- } else if (property != NULL && strcmp(property, "readonly") == 0) {
- return 1;
- } else if (property != NULL && strcmp(property, "nclients") == 0) {
- return 1;
- } else if (property != NULL && strcmp(property, "mfunnel") == 0) {
- return 1;
- } else if (property != NULL && strcmp(property, "embedr") == 0) {
- return 1;
- }
- return 0;
+ if (property == NULL)
+ return 0;
+ return strcmp(property, "type") == 0 ||
+ strcmp(property, "shared") == 0 ||
+ strcmp(property, "nthreads") == 0 ||
+ strcmp(property, "readonly") == 0 ||
+ strcmp(property, "nclients") == 0 ||
+ strcmp(property, "mfunnel") == 0 ||
+ strcmp(property, "embedr") == 0 ||
+ strcmp(property, "optpipe") == 0;
}
/**
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list